This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Embarassing question on linking
- To: <gnu-win32 at cygnus dot com>
- Subject: Re: Embarassing question on linking
- From: "Chris Double" <chris at actrix dot gen dot nz>
- Date: Mon, 26 May 1997 23:27:36 +1200
>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".