Re: -static not working with gcc 4.3.4

2011-02-03 Thread Christopher Faylor
On Thu, Feb 03, 2011 at 01:21:39PM -0800, gvidaver wrote: >To clarify : you can't make an executable that copies the dll or >library code into the executable itself. When the exe launches it will >look for cygwin1.dll in /usr/bin. So it will fail to launch on a >system that doesn't have cygwin in

Re: -static not working with gcc 4.3.4

2011-02-03 Thread gvidaver
To clarify : you can't make an executable that copies the dll or library code into the executable itself. When the exe launches it will look for cygwin1.dll in /usr/bin. So it will fail to launch on a system that doesn't have cygwin installed. If I understand the cygwin license, this is inten

Re: -static not working with gcc 4.3.4

2011-02-03 Thread Charles Wilson
On 2/3/2011 2:34 PM, gvidaver wrote: > It still requires the cygwin1.dll: > > $ g++ -v > ... > gcc version 4.5.0 (GCC) > > $ g++ test.c -o test -static > > $ ldd test.exe > ... > cygwin1.dll => /usr/bin/cygwin1.dll (0x6100) > ... Uhm, yes. The cygwin-provided gcc is

Re: -static not working with gcc 4.3.4

2011-02-03 Thread marco atzeri
On Thu, Feb 3, 2011 at 8:34 PM, gvidaver wrote: what is a new game to continue a thread after 3-4 months ? > > It still requires the cygwin1.dll: of course it is a cygwin program built by the gcc for cygwin . > > $ g++ -v > ... > gcc version 4.5.0 (GCC) > > $ g++ test.c -o test -static > > $ l

Re: -static not working with gcc 4.3.4

2011-02-03 Thread gvidaver
It still requires the cygwin1.dll: $ g++ -v ... gcc version 4.5.0 (GCC) $ g++ test.c -o test -static $ ldd test.exe ... cygwin1.dll => /usr/bin/cygwin1.dll (0x6100) ... And apparently the only alternative is mingw, see: http://cygwin.com/faq/faq-nochunks.html#faq.p

Re: -static not working with gcc 4.3.4

2010-10-18 Thread Samuel Thibault
Marco Atzeri, le Mon 18 Oct 2010 14:22:02 +0100, a écrit : > have you checked if 4.5 has the same problem ? > > http://cygwin.com/ml/cygwin-announce/2010-08/msg00016.html It doesn't have the problem any more. Samuel -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: -static not working with gcc 4.3.4

2010-10-18 Thread Marco Atzeri
--- Lun 18/10/10, Samuel Thibault scritto: > > > From: Samuel Thibault > > > $ cat test.c > > > int main(void) {} > > > $ gcc test.c -o test -static > > > > /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: > > > cannot find -lgcc_s > > > > /usr/lib/gcc/i686-pc-cygwin/4.3.4/../

Re: -static not working with gcc 4.3.4

2010-10-18 Thread Samuel Thibault
Nellis, Kenneth, le Mon 18 Oct 2010 07:45:15 -0500, a écrit : > > From: Samuel Thibault > > $ cat test.c > > int main(void) {} > > $ gcc test.c -o test -static > > /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: > > cannot find -lgcc_s > > /usr/lib/gcc/i686-pc-cygwin/4.3.4/../.

RE: -static not working with gcc 4.3.4

2010-10-18 Thread Nellis, Kenneth
> From: Samuel Thibault > > Hello, > > gcc -static doesn't seem to be working any more using gcc 4.3.4: > > $ cat test.c > int main(void) {} > $ gcc test.c -o test -static > /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: > cannot find -lgcc_s > /usr/lib/gcc/i686-pc-cygwin/4