This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: gcc problem
The error message is:
$ gcc -o gtest gtest.cc
/cygdrive/c/DOCUME~1/lauerr/LOCALS~1/Temp/ccCmpxzX.o(.text+0x4d):gtest.cc:
undefined reference to `std::ios_base::Init::Init[in-charge]()'
/cygdrive/c/DOCUME~1/lauerr/LOCALS~1/Temp/ccCmpxzX.o(.text+0x68):gtest.cc:
undefined reference to `std::ios_base::Init::~Init [in-charge]()'
collect2: ld returned 1 exit status
Maybe you could just try g++ instead of gcc in the command line to force
it to recognize .cc extension as a C++ source file, not some kind of
preprocessor input.
Laurent.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/