Mail Archives: djgpp/1999/03/08/19:55:47
Hey John!
I'm having the same problem exactly! Any luck yet?
Want to see something even more strange? Compile and link in two steps:
1. gcc -c hello.cpp -o
2. gxx -o hello.o
It works on my machine! As mentioned, though, I still get errors with the
single step "gcc -o hello.exe hello.cpp"
:-(
--Andy
john_maple AT yahoo DOT com wrote in message <7c0l5l$1dt$1 AT nnrp1 DOT dejanews DOT com>...
>I have been having major problems compiling even the simplest of programs
>with DJGPP. I got snagged by the common LFN problem and fixed that. Now
>however, I get compilation errors even on "Hello World!" If I compile
within
>RHIDE and say "Build All" the object file gets created but in the file
>compile to the .exe, it fails.
>
>If I compile directly on the DOS command line with "gcc hello.cc -o
>hello.exe" I get the following errors:
>
>c:/djgpp/tmp\cccixyke(.text+0x19):hello.cc:undefined reference to `cout'
>c:/djgpp/tmp\cccixyke(.text+0x19):hello.cc:undefined reference to
>`ostream::operator(char const *)'
>
>Can anyone help me? This is so frustrating because DJGPP v1 ran fine for
me
>from the get-go, but I have just been having one problem after another with
>v2. I am not a major C++ expert, I'm just trying to learn and improve.
>
>Thanks in advance....
>
>-John Maple
>
>-----------== Posted via Deja News, The Discussion Network ==----------
>http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
- Raw text -