[Top][All Lists]

[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: Gecko/20101206 SUSE/3.1.7 Thunderbird/3.1.7


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



reply via email to

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