PDA

View Full Version : Using MSVC to MINGW



kiboi
12th October 2012, 06:10
Hi! I would like to compile using mingw for LINUX platform. Currently, I'm using MSVC. Can I compile it to mingw instead?
Thanks!

sonulohani
12th October 2012, 06:19
You cannot use MSVC in linux. But you can use Mingw in linux. In windows you can use both compiler i.e; Mingw,MSVC

kiboi
12th October 2012, 06:58
Thanks! if its was previously compiled to msvc, can i recompile it using mingw? i tried it but a lot of errors came out.

ChrisW67
12th October 2012, 08:12
if its was previously compiled to msvc, can i recompile it using mingw?
Yes. If you have used any feature of the Windows API later than Win 95/NT then you should read the comments at the top of MingW's windef.h file. If you have used any of the 100s of Microsoft-isms in your code, like linker directives or odd-ball defines, then is may still not compile but you will be closer.