* -mno-cygwin symlinks... (Was Simple hello world in C++)
@ 2001-02-20 21:30 Patrick Lightbody
2001-02-21 4:21 ` Earnie Boyd
0 siblings, 1 reply; 2+ messages in thread
From: Patrick Lightbody @ 2001-02-20 21:30 UTC (permalink / raw)
To: cygwin
OK, I just kept making symlinks, it turns i only needed to do:
/usr/include/g++-3/_G_config.h --> ../_G_config.h
/usr/include/g++-3/sys --> ../sys
So now I can compile as the following shows:
[plightbo@raptor c]$ gcc test.cpp -lstdc++
[plightbo@raptor c]$ cygcheck.exe a.exe
Found: .\a.exe
.\a.exe
C:\cygwin\bin\cygwin1.dll
C:\WINDOWS\SYSTEM\KERNEL32.dll
Use -h to see help about each section
[plightbo@raptor c]$ gcc test.cpp -lstdc++ -lc -mno-cygwin
[plightbo@raptor c]$ cygcheck.exe a.exe
Found: .\a.exe
.\a.exe
C:\cygwin\bin\cygwin1.dll
C:\WINDOWS\SYSTEM\KERNEL32.dll
C:\WINDOWS\SYSTEM\crtdll.dll
Use -h to see help about each section
[plightbo@raptor c]$
However, as you can see crtdll.dll AND cygwin1.dll shouldn't both be linked
as is happening. When I run the app, it just locks up, which is
understandable. So what is going on? I still think it has to do with those
symlinks I made. What am I doing wrong? When compiling with -mno-cygwin I
need to have both -lstdc++ (of course) but also -lc or else I get tons of
linking errors. Yet without -mno-cygwin I no longer need -lc to compile/link.
-Pat
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: -mno-cygwin symlinks... (Was Simple hello world in C++)
2001-02-20 21:30 -mno-cygwin symlinks... (Was Simple hello world in C++) Patrick Lightbody
@ 2001-02-21 4:21 ` Earnie Boyd
0 siblings, 0 replies; 2+ messages in thread
From: Earnie Boyd @ 2001-02-21 4:21 UTC (permalink / raw)
To: Patrick Lightbody; +Cc: cygwin
Patrick Lightbody wrote:
>
> OK, I just kept making symlinks, it turns i only needed to do:
> /usr/include/g++-3/_G_config.h --> ../_G_config.h
> /usr/include/g++-3/sys --> ../sys
>
You can't do that.
> So now I can compile as the following shows:
>
> [plightbo@raptor c]$ gcc test.cpp -lstdc++
> [plightbo@raptor c]$ cygcheck.exe a.exe
> Found: .\a.exe
> .\a.exe
> C:\cygwin\bin\cygwin1.dll
> C:\WINDOWS\SYSTEM\KERNEL32.dll
>
> Use -h to see help about each section
> [plightbo@raptor c]$ gcc test.cpp -lstdc++ -lc -mno-cygwin
> [plightbo@raptor c]$ cygcheck.exe a.exe
> Found: .\a.exe
> .\a.exe
> C:\cygwin\bin\cygwin1.dll
> C:\WINDOWS\SYSTEM\KERNEL32.dll
> C:\WINDOWS\SYSTEM\crtdll.dll
>
> Use -h to see help about each section
> [plightbo@raptor c]$
>
> However, as you can see crtdll.dll AND cygwin1.dll shouldn't both be linked
> as is happening. When I run the app, it just locks up, which is
> understandable. So what is going on? I still think it has to do with those
> symlinks I made. What am I doing wrong? When compiling with -mno-cygwin I
> need to have both -lstdc++ (of course) but also -lc or else I get tons of
> linking errors. Yet without -mno-cygwin I no longer need -lc to compile/link.
>
You need the MinGW versions of _G_config.h and libstdc++.a. I suggest
waiting for the gcc-2.95.2-8 package to be announced. If you can't wait
then visit http://www.mingw.org and download the MinGW version of gcc.
Earnie.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-02-21 4:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-20 21:30 -mno-cygwin symlinks... (Was Simple hello world in C++) Patrick Lightbody
2001-02-21 4:21 ` Earnie Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).