On 9/9/2010 5:47 AM, Peter Rosin wrote: > Anyway, both fail in pretty much the same way for me: > > can't open the module tests/mdemo/foo1.la! > error was: The specified module could not be found. > can't open the module tests/mdemo/foo1! > error was: The specified module could not be found. > can't open the module tests/mdemo/libfoo2.la! > error was: The specified module could not be found. > can't open the module tests/mdemo/libfoo2! > error was: The specified module could not be found.
Yes. The problem is in how mdemo_static.exeS.c is constructed; lt__PROGRAM__LTX_preloaded_symbols contains "header" entries for each -dlpreopen'ed library, but they are: {"cygsub-0.dll", (void *) 0}, when they should be {"libsub.a", (void *) 0}, Manually making that change and re-linking fixes the error. I just need to track down *why* the wrong library name is being used and fix it, without breaking mdemo.exeS.c (the one that dlpreopens the DLLs, and SHOULD be specifying 'cygsub-0.dll' etc). -- Chuck