Mail Archives: djgpp/1997/12/27/12:20:05
At 02:22 12/26/1997 +0100, D Hacker wrote:
>Hi!
>I am lerning c++ but I have a big problem.
>When I tried to compil the simple file below (inledn.cpp) I got this
>message:
>d:/djgpp/tmp\ccdaaaaa(.text+0x16):inledn.cc: undefined reference to `cout'
>d:/djgpp/tmp\ccdaaaaa(.text+0x1b):inledn.cc: undefined reference to
>`ostream::op
>erator<<(char const *)'
[snipped]
>I run djgpp in DOS, and to compill i use the commando: gcc inledn.cpp (i
>have tried -o but gcc dosent't know that comman).
`-o' requires an argument which is the file into which you want `gcc's
output to go. Example: gcc -o foo.exe foo.c
>Am I doing something wrong??? If, please tell me!
>Pleeeeeeeeese help me!!!
When you link a C++ program you must use the command `gxx' instead of `gcc'.
README.1ST explains this; read it!
Nate Eldredge
eldredge AT ap DOT net
- Raw text -