Quote:
Originally Posted by abolishtheun
For a native DLL/shared objects, you don't. Windows cannot run linux binaries (duh). You'd rebuild on windows.
|
Your answer is incorrect. Building dlls on linux has nothing to do with linux binaries.
Quote:
Originally Posted by kolikko
Hi all,
Does anyone know if it is possible to build DLL on Linux platform and then use it on Windows side?
Source code would be written in C++.
Thanks.
|
Yes, it is possible, but sometimes it's tricky (and in some rare situations it's very difficult to make tools work). I did windows programming on linux machine.
You can use:
1) mingw-cross .
2) Wine + Microsoft Visual Studio compiler toolkit
2003. (Good luck finding this one. It's still on the web, but not on Microsoft Website).
3) Wine + mingw.
In my opinion, Using wine+windows compiler is easiest way.
All those utilities can be used in conjuction with scons or gnu make.
Search for mingw-cross, this should be enough to get started. Also expect that your program might not work through wine at all, and be ready to get unexpected problems during compilation (for example, running windows version mingw with mingw will may require native windows msvcrt.dll, due to the wine bug (which could be already fixed by now)).