[Scons-users] Problem with DLL dependencies on Windows

Dmitry Mikhin dmitry.mikhin at gmail.com
Fri May 24 04:41:53 EDT 2013


Hello Dirk,


> this sounds a bit as if the Emitter of the MinGW toolchain doesn't add both

> file suffixes (*.a, *.dll) to the list of targets.

> Are you creating the shared libs by specifying their full name:

>

> t = env.SharedLibrary('libfoo.a', Glob('*.cpp'))


No, it is (see src/lib/SConscript):

sources = ['mylib.c']
utils = envc.SharedLibrary(target='utils', source=sources)


> . Also make sure that you haven't set the "no_import_lib" flag to '1' or

> 'True' in your environment.


env['no_import_lib'] is not set, no such field at all


> The *.a file and the *.dll file should both appear in the list of targets

> for your DLL. You can test this by printing them to stdout:

>

> t = env.SharedLibrary(...)

> print "My targets:", map(str, t)


Yes, they do:
My targets: ['utils.dll', 'libutils.a']

Any other ideas?
Dmitry


More information about the Scons-users mailing list