[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mingw: Problems linking executables with static libraries
From: |
Michael Scheibler |
Subject: |
mingw: Problems linking executables with static libraries |
Date: |
Mon, 11 Jun 2001 12:52:36 +0200 |
Well, it's pretty weired. At the beginning we had problems linking
gnustep-base as DLL, now it's not possible to use it as a static library:
gcc -mno-cygwin -Xlinker --enable-stdcall-fixup -mdll -o
ovsys.junk -Wl,--base-file,ovsys.base ./__dllmain.o IsAdmin.o
CStringBuffer.o Syslog.o
OVSystem.o -LE:/root/usr/GNUstep/Libraries -Wall -lgnustep-base_s -lobjc_s -
lwsock32 -lwinspool
That's the error:
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-1/../../../../i686-pc-cygwin/bin/ld:
final link failed: File truncated
collect2: ld returned 1 exit status
As you can see, I am using cygwin's compiler with the -mno-cygwin option
(->mingw32). However, if I use the original mingw32-gcc, I get this message:
ld: final link failed: No error
This example shows the linkage to a DLL but I have this problem with
executables, too. Well... I also have an example which links fine. It's only
small, not complex.
Of course that's only a problem on Win32 :-/ but do you know what's wrong
here?
Michael
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- mingw: Problems linking executables with static libraries,
Michael Scheibler <=