QUOTE(obcd @ Jan 9 2010, 11:21 AM)
Build is a 2 step thing.
In step 1, the source code c and c++ files will be compiled to object files. Most errors that appear are missing header files. In visual studio 2003 under the option tab, you have to tell the ide where it should search for include files. If the path setting isn't there, it will not find the include file. If you install your sources in a different folder, the include files will also exist in a different folder. I am even unsure that the include path settings are stored in the project file. I think they are global for the ide.
In step 2, the object files generated in step one are linked together.
They are also linked to a number of libraries. libraries are files that contain usable functions.
Those functions are usually defined in the header files.
Again, the ide needs to know where to search for the libraries.
If a library is missing, you will get a number of unresolved external errors.
This is due to library function calls in the code. If the function doesn't exist, the linker can't resolve the function call.
It's usually a good practice to install the existing version of your program (emulator) first. That way, you will be sure to have the correct artwork and font files for your program to run. Sometimes a downloaded source package only contains the source files to create the main xbe, and the artwork is not included as it usually hardly changes.
In case of the xbox, most programs are created using the xdk. This means that the code cam functions from the xdk library. There are several versions of that library, and some function calls can be missing in older xdk library versions. In that case, you will get an unresolved external as well during linking.
So basically, it's best to start with one C file at a time and just compile it instead of starting the full build. If it compiles without errors, you can jump to the next file. It's not possible to rush things, it simply won't work.
When all C code compiles, you can start the linking.
In the beginning, the number of errors will decrease fast. The last ones appearing are the most difficult.
Thanks for the reply!
I will have to play around with it more, keeping your tips in mind.
Just to clarify, once I get the code to compile with 0 errors I should be able to take the XBE and put it in the file with the media files and the program should run?