[Scons-users] SharedLibrary + SHLIBVERSION and cygwin

Paweł Tomulik ptomulik at meil.pw.edu.pl
Tue Aug 18 09:57:45 EDT 2015


W dniu 2015-08-18 14:58, Paweł Tomulik pisze:
> Hi all,
>
> [...]

Here is additional info printed by VersionedSharedLibrary with Verbose 
set to True:

ptomulik at mwnotebook:$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o foo.os -c -I. foo.cpp
VersionShLib: libname      =  cygfoo-0-1-2.dll
VersionShLib: platform     =  cygwin
VersionShLib: shlib_suffix =  .dll
VersionShLib: target =  cygfoo-0-1-2.dll
VersionShLib: shlink_flags =  -Wl,-no-undefined -shared -Wl,-Bsymbolic 
-Wl,--out-implib,${TARGET.base}.a
g++ -o cygfoo-0-1-2.dll -Wl,-no-undefined -shared -Wl,-Bsymbolic 
-Wl,--out-implib,cygfoo-0-1-2.a -Wl,--out-implib=libfoo-0-1-2.dll.a 
-Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive 
foo.os -Wl,--no-whole-archive -L.
VerShLib: target lib is =  cygfoo-0-1-2.dll
VerShLib: name is =  cygfoo-0-1-2.dll
VerShLib: dir is =  .
VerShLib: linknames  []
g++ -o main.o -c -I. main.cpp
g++ -o main.exe -Wl,-no-undefined main.o -L. -lfoo
/bin/ld: cannot find -lfoo
collect2: error: ld returned 1 exit status
scons: *** [main.exe] Error 1
scons: building terminated because of errors.



-- 
Paweł Tomulik
Instytut Techniki Lotniczej i Mechaniki Stosowanej
Politechnika Warszawska


More information about the Scons-users mailing list