I'm trying to set up a cross platform development toolchain for creating
plugins for the flight simulator X-Plane (http://x-plane.com/).
Basically they offer a plugin architecture in the form of creating
shared objects, more info here:
I'm using Linux as my hosting platfrom, and have created a mingw-based
cross compiler toolchain (using the crossdev script on my Gentoo Linux
box). I'm using gcc 4.1.2 for all this.
I can cross compile & run sample code just fine. What I'm having
problems with is to create X-Plane plugins, which requires linking
againts some X-Plane DLL stub librarires, as described on their
My persumption is that these libraries were created with Visual Studio 6.
When I investigate these libraries, this is what I get:
$ file XPLM.lib
XPLM.lib: current ar archive
$ mingw32-ar t XPLM.lib
... (a total of 169 times)
when trying to link againts this library - basically mingw32-ld segfaults.
after removing 168 copies of XPLM.dll from the above lib, so that only 1
remains, by repeated calls to mingw32-ar d XPLM.lib XPLM.dll, I still
can't link, I get:
../../usr-mingw/SDK/Libraries/Win/XPLM.lib: could not read symbols:
Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
running mingw32-ranlib doesn't make a difference.
What am I doing wrong?