I’m a .net developer by heart and usually write web applications. However I’ve been given the binary of a small project and I need to compile it (I think).
It is only two files: mfile.h and mfile.cpp. From looking at the code the .h file is a header file that contains constants and the cpp file is the actual codefile.
I created a new C++ makefile project in Visual Studio Pro 2008 and added these but when I try to build it just says Error 1 Error result -1 returned from ”. Project mfile
I honestly have never worked with this type of code before but I want to compile this and start learning. What exactly am I missing?
Wish you were running VS 6, in which case you’d just load the
.cppfile, click “build”, click “okay” when it says it’s going to create a project for you, and off you go.With VS 2008, you want to:
Now you should be able to (finally) build your project.
Alternatively, you can compile from the command line. In the start menu go to “Microsoft Visual Studio 8.0” -> “Visual Studio Tools” and pick one of the command prompts. When it opens, use
cdto switch to wherever you’ve stored the files. Type:to compile.