|
From: Benno S. <ben...@go...> - 2007-12-05 00:34:48
|
Hi I am trying to compile libgig (an audio sample format library) on win32 using mingw (current stable version) http://www.linuxsampler.org/downloads.html out of the box it compiles a static lib and it works fine but I would like to create a shared DLL which currently does not work. The problem seems related to the fact that libgig does -lrpcrt4 ----------------------------------- g++ -DHAVE_CONFIG_H -I. -I. -I.. -pedantic -Wreturn-type -O3 -msse -march=pentium4 -mfpmath=sse -ffast-math -fomit-frame-pointer -funroll-loops -MT gig.lo -MD -MP -MF .deps/gig.Tpo -c gig.cpp -DDLL_EXPORT -DPIC -o .libs/gig.o /bin/sh ../libtool --mode=link g++ -pedantic -Wreturn-type -O3 -msse -march=pentium4 -mfpmath=sse -ffast-math -fomit-frame-pointer -funroll-loops -o libgig.la -rpath /usr/local/lib -no-undefined -version-info 8:0:2 RIFF.lo DLS.lo gig.lo -lrpcrt4 *** Warning: linker path does not have real file for library -lrpcrt4. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because I did check the linker path looking for a file starting *** with librpcrt4 and none of the candidates passed a file format test *** using a file magic. Last file checked: /mingw/lib/gcc/mingw32/3.4.2/../../..//librpcrt4.a *** The inter-library dependencies that have been dropped here will be *** automatically added whenever a program is linked with this library *** or is declared to -dlopen it. *** Since this library must not contain undefined symbols, *** because either the platform does not support them or *** it was explicitly requested with -no-undefined, *** libtool will only create a static version of it. ar cru .libs/libgig.a .libs/RIFF.o .libs/DLS.o .libs/gig.o ranlib .libs/libgig.a creating libgig.la --------------------------------------------------- basically mingw has only this file in the mingw tree /mingw/lib/librpcrt4.a are there some files missing (dll import lib ?) Any idea how I can tell libtool to compile libgig as shared DLL if I remove the -llibrpcrt4 and uncomment the code in libgig that uses librpcrt4 then libtool generates a shared DLL so the offending part is most probably this librpcrt4 thanks for any hint, cheers, Benno http://www.linuxsampler.org |