By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
- How do I port a Unix makefile to Windows 2000 (Visual Studio .NET)?
- How do I compile a C program (originally written in Unix) in Visual Studio .NET?
While at first it can look quite a bit confusing to move from Unix development environments to Windows development environments, it's actually pretty straight forward. Here are the steps you should follow:
- Look at the Unix makefile and look at all defines that are set on the compiler's command line. This might be a little difficult as you'll need to probably look at various macros to find them. Once you've go the defines for both debug and release builds, you're past the hardest part.
- In the Unix makefile, get the list of files that are compiled.
- In Visual Studio .NET, start by creating a simple C++ console application. You may want to turn off precompiled headers in the wizards unless you want to add '#include "stdafx.h"' to each .C/.CPP file.
- Add the Unix files to the Visual Studio project.
- In the project properties, add the defines to the debug and release projects as required.
Dig Deeper on Win Development Resources
Related Q&A from John Robbins
What is a JAD session? This term is referred to often in job postings and seems like some kind of brainstorm you carry out with a client to define IT... Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.