This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Gcc 3.2 on CYGWIN
- From: "Éric Béchet" <eric dot bechet at epost dot de>
- To: <gcc at gcc dot gnu dot org>
- Date: Fri, 16 Aug 2002 14:29:09 -0400
- Subject: Gcc 3.2 on CYGWIN
Hi there,
I just succeeded in compiling GCC3.2 on cygwin.
here are the infos :
$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-cygwin/3.2/specs
Configured with: /home/bechet/gcc3.2/gcc-3.2/configure
Thread model: single
gcc version 3.2
$ ./config.guess
i686-pc-cygwin
The config is standard :
configure
make bootstrap
make install
However, any program using the iostream library gives a lot of errors at
linking. Others seem to compile and work fine so far. It seem the linker is
unable to find the library to link with.
e.g. the program :
#include <iostream>
int main(void)
{
std::cout << "hello world" << std::endl;
return 0;
}
gives those errror below when compiled and linked : Any clue on a workaround
for
this ? (it was working previously with the gcc 2.95.x.x shipped with cygwin)
Thaks for any help,
Eric Bechet
$ g++ toto.c
/cygdrive/c/DOCUME~1/BECHET~1.MEC/LOCALS~1/Temp/cctoDYLI.o(.text+0x2d):toto.
c: undefined reference to `std::cout'
/cygdrive/c/DOCUME~1/BECHET~1.MEC/LOCALS~1/Temp/cctoDYLI.o(.text+0x3a):toto.
c: undefined reference to `std::basic_ostream<char, std::char_traits<char>
>& std::operator< < <std::char_traits<char> >(std::basic_ostream<char,
std::char_traits<char> >&, char const*)'
***a lot more messages***
collect2: ld returned 1 exit status