compiling a .vcproj to get a dll file. - by lost_soul
Telliamed on 28/1/2010 at 23:44
Quote Posted by Al_B
I would suspect that needing a Windows DLL would be a bit of a problem with taking that approach. Cygwin and and MinGW are great platforms but they won't allow a windows executable to load a unix style library.
Incorrect. Cygwin itself is a POSIX layer (using PE binaries, although there is some odd ELF support though it isn't used much), but the MinGW compiler is for compiling native Win32 applications and DLLs. Only thing is Cygwin is still using the gcc3 it's MinGW. Version 4 has been around for a while. Although it's useful on it's own, you don't need Cygwin to use MinGW and can get the later by itself from (
http://www.tdragon.net/recentgcc/)
Al_B on 29/1/2010 at 00:15
I stand corrected. I thought that MinGW still needed an abstraction layer but most of my experience recently has been with cygwin.
lost_soul on 29/1/2010 at 02:11
Quote Posted by Al_B
I'm
sure I'm reading that incorrectly but you went to college at your mothers house?
In any case, changing .proj files into makefiles will work as they're both ultimately achieving the same end - i.e. making sure that your software gets compiled in the right order. It won't really help your Windows program load Linux libraries or vice versa, however.
Haha I didn't realize how that sounded until I jus re-read it.
Brian The Dog on 29/1/2010 at 11:27
I had to compile Gnu Multiple Precission (GMP) for Windows, there is an option in the .configure and make scripts that allow you to compile to a Windows dll. BUT (a) this needs to be an option in the .configure srcipt, and (b) you need to include the cygwin dll as well as compiled dll to your Visual Studio project. I tried it with the Gnu Scientific Library (GSL) and it didn't like compiling to dll.