-1

I have a project in Linux, but it's cross platform code. How can I compile it in Visual Studio 2008 for the Windows part?

Carmen
  • 11
  • 6
  • 3
    Create a solution, add the source files, and try to compile. Fix the errors one by one. – Jonathan Potter Oct 14 '15 at 11:48
  • One way to fix some problems would be to try Visual Studio 2015. It's about 7 years newer. *A lot* has happened in that time. – Bo Persson Oct 14 '15 at 11:50
  • 2
    You could install Cygwin and the latest gcc on your windows system and compile it using the makefile. – Mithrandir Oct 14 '15 at 11:52
  • To add one more solution: if the code is too specific for a Microsoft Compiler you might want to use mingw: http://www.mingw.org/ – Marged Oct 14 '15 at 12:24

1 Answers1

1

You have 2 options:

1)Use the windows version of same compiler(Hopefully GCC) + compiler extension for Visual studio.

2)Start creating Visual Studio project and fix compilation/linking errors occurred due to change in compiler/language standard supported by them.

Both the approaches doesn't guarantee your code will work directly, you may have to replace/#ifdef certain parts of code not supported by the platform.