I'm working on porting Cuneiform from Linux to MinGW. The code is here: https://code.launchpad.net/~jpakkane/cuneiform-linux/winport
I build a bunch of dlls from source and link them to the main binary. Most work fine, but in one instance the import library has virtually no defined symbols at all. This causes link errors. This happens both with the release version of MinGW as well as 4.3.0 20080305. The problematical library is librimage.dll and librimage.dll.a.
If I look at the .obj files and .dll with a hex editor, the symbols are there. No matter what I do, I can't get them to appear in the import library.
I suspected that this could be caused by #defines that hide the symbols. I tested this by adding a test function to a source file in a way that it can't get hidden. It still does not show up in the import library.