Thanks, that was what I suspected.

Patrick


The problem actually isn't the object-file format (and MinGW
actually doesn't emit elf). The problem is that you're trying
to mix C++ compilers:

http://oldwiki.mingw.org/index.php/MixingCompilers?redirectfrom=MixObjects

The best solution is to compile everything with the same tool.