Mail Archives: djgpp/1997/11/08/21:30:35
In message <34654D36 DOT 7518 AT cs DOT huji DOT ac DOT il>
"undefined references"
"Ofer Corshid <oferco AT cs DOT huji DOT ac DOT il>" wrote:
> I have the file myfile.cc:
> #include <iostream.h>
>
> void main()
> {
> cout << "test";
> }
>
> When I enter this command:
> gcc myfile.cc -o myfile.exe
>
> I get this messages:
> undefined reference to 'cout'
> undefined reference to 'ostream::operator<<(char const *)'
>
> Why???
Try this command:
gxx myfile.cc -o myfile.exe
Jun
- Raw text -