This is the mail archive of the gcc@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]

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


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