Heyas
Me trying some C.. cout in specific, thats what i remembered:
#include <stdio.h>
// -- Just the above or with all the below ones, no change
#include <stdio_ext.h>
#include <stdlib.h>
#include <wchar.h>
//#include <iostream> // I assume its the same anyway?
//#include <iostream.h> // But since these fail, and cout still is missing, i have no idea
#include <string.h>
#include <strings.h>
#include <stropts.h>
//#include <stream.h>
//#include <io.h>
#include <stdint.h>
#include <stdfix.h>
#include <unistdio.h>
#include <libio.h>
//#include <input.h>
//#include <sdbout.h>
//#include <system.h>
//#include <errors.h>
//#include <options.h>
//#include <filenames.h>
//#include <shout.h>
//#include <system.h>
//#include <regexp.h>
//#include <keyutils.h>
void main(){
cout "Hello"; // Upon inital error msg, recalled this was wrong
cout << "Hello"; // So tried this one
std::cout << "Hello"; // This one's from a guide but fails too
std:cout << "Hello"; // didnt see that before, but since above failed because of '::'
}
I've seen the bold include lines associated with it, but it fails:
0 ~/prjs/c-learnings/1-output $ build-it cout
+ LC_ALL=C
+ gcc -o cout cout.c
cout.c: In function 'main':
cout.c:30:2: error: 'cout' undeclared (first use in this function)
cout "Hello"; // Upon inital error msg, recalled this was wrong
^
cout.c:30:2: note: each undeclared identifier is reported only once for each function it appears in
cout.c:30:7: error: expected ';' before string constant
cout "Hello"; // Upon inital error msg, recalled this was wrong
^
cout.c:32:6: error: expected expression before ':' token
std::cout << "Hello"; // This one's from a guide but fails too
^
cout.c:33:2: error: duplicate label 'std'
std:cout << "Hello"; // didnt see that before, but since above failed because of '::'
^
cout.c:32:2: note: previous definition of 'std' was here
std::cout << "Hello"; // This one's from a guide but fails too
^
+ RET=1
+ '[' 0 -eq 1 ']'
+ set +x
Any ideas, thank you