Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#18 Autoimport doesn't work when linking directly against DLL

Known_bugs
closed
ld (17)
2001-12-11
2000-12-24
Paul Sokolovsky
No

Description:
Trying to rely on autoimport feature when linking directly against DLL (versus linking against import library) will produce broken executables.

Cause:
When linking against DLL, symbols are not distinguished by DATA vs CODE.

Solution/Workaround:
Do not link against DLL. Create proper import library (e.g., with the pexports tool, part of 'altbinutils-pe' package at http://sourceforge.net/projects/mingwrep/\) and link against it.

Discussion

  • Earnie Boyd
    Earnie Boyd
    2001-12-11

    • status: open --> closed