MSVC Order in which DLLs are linked

I debug an application which links against two DLLs. When an object from one of these DLLs is instantiated the application segfaults. However, when the order of the .lib files in (VS2010) Linker->Input->Additional Dependencies is swapped then the application runs fine.

This workaround works for now but I still want to understand what caused the problem. Any hints, how can I further debug this?


Source: dll

Leave a Reply