From: Paul Garceau <pgarceau@te...> - 2000-11-09 00:32:06
On 8 Nov 2000, at 16:23, the Illustrious Cosmin Truta wrote:
> I have tried to use the Micrsoft linker (link.exe) instead of the
> GNU linker (ld.exe), because it optimizes better the output.
> Unfortunately, that didn't work. The linker displayed a warning
> (LNK4078: multiple ".text" sections found with different
> attributes) and the output (the exe) crashed without
> running/showing anything.
> I run:
> > gcc -O2 -c hello.c --> hello.o
> > link -nodefaultlib hello.o crt1.o libmingw32.a libgcc.a
> > libmoldname.a \
> libcrtdll.a libuser32.a libkernel32.a libadvapi32.a -->
> > hello.exe --> crash!
> What was the problem?
> Is it because of an incompatibility between the MinGW object
> format and MS-Win32 object format?
It's the difference between msvc object output format and mingw
object output format. They are incompatibile.
One suggestion might be to use -fnative-struct as part of your
compile line. I need to say, however that since I haven't ever
had a need to use this switch, I haven't tested building for any
app using the -fnative-struct switch and am not sure what else,
if anything, might be needed on the command line.
Nothing real can be threatened.
Nothing unreal exists.
Get latest updates about Open Source Projects, Conferences and News.