mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Linking statically


From: Mark Brand
Subject: Re: [Mingw-cross-env-list] Linking statically
Date: Wed, 26 Jan 2011 13:53:56 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 SUSE/3.1.7 Thunderbird/3.1.7


COMPILE COMMAND:

i686-pc-mingw32-g++ -o dude.exe main.o -llog4cxx
This fails with undefined references everywhere. Now if I add in all
the underlying static libs, it works.

i686-pc-mingw32-g++ -o dude.exe main.o -llog4cxx -laprutil-1 -lapr-1 -lexpat 
-liconv -lrpcrt4 -lshell32 -lws2_32 -ladvapi32 -lkernel32 -lmsvcrt
No problem. My question is, wasn't libtool supposed to use the .la
files to automatically find and reference these underlying libs? Is
there a syntax to get it to do so?

I'm not a libtool expert, but don't you have to invoke libtool if you want to use it? I'm looking at

http://www.gnu.org/software/libtool/manual/html_node/Linking-executables.html#Linking-executables


Mark




reply via email to

[Prev in Thread] Current Thread [Next in Thread]