Archive

Posts Tagged ‘MakeFile’

Running Makefile on the Windows

August 1, 2012 Leave a comment

There are many ways to run make program on the Windows, many of them will ask you to run in cygwin or similar shells. I was interested in running the makefile in the Windows so that the application generated could be used by the other Windows programs.
So the solution is to use the Visual Studio Command Prompt, run it, cd to the directory where the makefile is and then use the following

nmake -f Makefile

If the Makefile is using g++ or gcc in it you have to change it to “cl”, this the compiler being used by the VC.¬†You might have to make little changes but then it should work fine.

 

Have a look at following

http://stackoverflow.com/questions/2532234/how-to-run-a-makefile-in-windows

 

Categories: C++, code Tags: , , , ,