This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

Re: Embarassing question on linking


>gcc.exe: Internal compiler error: program ld got fatal signal 1
>make: *** [hellopp.exe] Error 1
>
>Now under hello.c, I have no errors,  I'm guessing that I need to do
>something to link the correct libraries which are needed under (G)C++,
>and were included by default under GCC (ansi).

You need to link against the stdc++ library. I used your source code 
and saved it as hello.cpp. The following line compiled and created
the executable a.exe:

gcc hello.cpp -lstdc++

Regards,
Chris Double.



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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