This document is slightly outdated.
Using the info here: http://www.mingw.org/old/mingwfaq.shtml#faq-msvcdll
I managed to create DEF files, and use Microsofts LIB tool to turn the library it into something MSVC likes.
I'm no CMake expert, and don't have the time to learn **another** build scripting language, however I created the CMake files in the usual way, built RTT and ensure it compiled cleanly. I hacked the created makefiles by a search of my source tree for "--out-implib" and found that link.txt that lives in build\src\CMakeFiles\orocos-rtt-dynamic_win32.dir had that string in it. So I added the --output-def,..\..\libs\liborocos-rtt-win32.dll.def, to create the def file, and rebuilt RTT, this created the DEF file, I than ran it through the Microsoft LIB tool as described.
I then created a MSVC project, added the library to my linker settings, and made a very simply MSVC console application:
#include "rtt\os\main.h" #include "rtt\rtt-config.h" int ORO_main(int, char**) { return 0; }
I also needed to setup my MSVC preprocessor definitions:
NDEBUG
_CONSOLE
__i386__
__MINGW32__
OROCOS_TARGET=win32
Hopefully I am now at a stage when I can actually start to evaluate RTT :-) If anyone has any ideas on how to properly get the CMakeList.txt to generate the DEF files without nasty post-CMake hacks, then I would love to hear it...