it seems to me that my c++ libraries are missing or something.
I have this basic program:
Code:
#include <stdio.h>
main(){
printf("Test for c++ compiler. It is working! \n");
}
and after compilation I get:
Code:
testcpp: line 16: extern: command not found
testcpp: line 22: typedef: command not found
testcpp: line 35: typedef: command not found
testcpp: line 36: typedef: command not found
testcpp: line 37: typedef: command not found
/testcpp: line 38: typedef: command not found
testcpp: line 41: typedef: command not found
testcpp: line 42: typedef: command not found
...
testcpp: line 51: __extension__: command not found
testcpp: line 52: __extension__: command not found
testcpp: line 60: __extension__: command not found
...
testcpp: line 81: syntax error near unexpected token `}'
testcpp: line 81: `__extension__ typedef struct { int __val[2]; } __fsid_t;'
what's wrong with this pucture and how to fix it?
Thank you!