So I'm currently using Lazy Foo's tutorials. Here's the link:
http://lazyfoo.net/SDL_tutorials/lesson01/windows/msvsnet05e/index.php
I followed all the instructions, but I'm having a couple issues.
So when I choose an empty project, like the tutorials recommends, as opposed to one with a precompiled header, the C/C++ tab does not appear, and I am unable to manipulate all of the options. This is peculiarity number 1. I think it may have to do with the fact that the tutorial is designed for VC++ 2005, but I am using VC++ 2008.
Anyways, both when I choose an empty project and when I do not, I receive the same compiling error.
Here is my code.
// SDL.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "SDL/SDL.h"
int main( int argc, char* args[] )
{
//Start SDL
SDL_Init( SDL_INIT_EVERYTHING );
//Quit SDL
SDL_Quit();
return 0;
}
Here is the error that I am getting.
1>------ Build started: Project: SDL, Configuration: Debug Win32 ------
1>Compiling...
1>SDL.cpp
1>c:\program files\microsoft visual studio 9.0\vc\include\sdl\sdl_stdinc.h(594) : fatal error C1083: Cannot open include file: 'close_code.h': No such file or directory
1>Build log was saved at "file://c:\Users\Nick\Documents\Visual Studio 2008\Projects\SDL\SDL\Debug\BuildLog.htm"
1>SDL - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Could this mean that I didn't link something properly or that I didn't copy and paste the SDL files into the Visual Studio lib folder properly? I'm not really sure.
Thank you for the help.