Microsoft (R) Incremental Linker Version 9.01 Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 9.01 for 80x86Ĭl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release Compilers are different on Linux and Windows.It’s easy to fix though as shown in the snippet. NMAKE : fatal error U1077: 'gcc' : return code '0x1' 'gcc' is not recognized as an internal or external command, Microsoft (R) Program Maintenance Utility Version 9.01Ĭopyright (C) Microsoft Corporation. Change directory to where the Makefile exists and run NMake.
An easy way is to start a command prompt from Visual Studio ( Tools->Visual Studio Command Prompt), so that all the necessary environment variables are set. Start a command prompt which can execute NMake.
# Compile the source files into object files # Link the object files and dependent libraries into a binary The example code can be accessed via GitHub at. However, let’s see if it can handle the following simple Linux Makefile. NMake is the native Windows alternative to the Linux make utility and the syntax is very similar too. This post explains the nuanced differences between a Linux and Windows Makefile. Often, the simple (and rather naive) answer is “use NMake”.
A commonly asked question is, “can I use Linux makefiles to build on Windows?”