This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: GCC compiler in a cygwin environment.


Hi

> -----Original Message-----
> From: Johansson Mikael (mj) [mailto:mikael.mj.johansson@volvo.com]
> Sent: 19/03/2002 14:56
> To: gcc-help@gcc.gnu.org
> Subject: GCC compiler in a cygwin environment.
> 
> 
> Hello.
> 
> I have gcc installed in a cygwin environment on win NT.
> 
> I cant compile c++ -code to executables in that environment.
> From the linker stage I get the following error message:
> 
> /usr/tmp/ccRILazb.o(.text+0x1f):Hello.cc: undefined reference 
> to `endl(ostream &)'
> /usr/tmp/ccRILazb.o(.text+0x2c):Hello.cc: undefined reference 
> to `cout'
> /usr/tmp/ccRILazb.o(.text+0x31):Hello.cc: undefined reference 
> to `ostream::operator<<(char const *)'
> /usr/tmp/ccRILazb.o(.text+0x44):Hello.cc: undefined reference 
> to `getch'
> 
> If anyone has a clue on this please let me know.
> 
> Best regards.
> MJ
> 

I had this problem too. Try calling with g++ to force compilation and
linking as C++. gcc should do the right thing based on your file extension
though ? Sorry I can't be of more help :)

Scott


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]