Name: Anonymous 2011-09-06 21:23
I keep looking for a solution on how to get the external dependencies to load for a basic SDL program I'm doing. I'm new to programming, but here's what I wrote.
#include <iostream>
#include "conio.h"
#include "sdl.h"
using namespace std;
void main()
{
int SDL_Init(Uint32 flags);
void SDL_Quit(void);
_getch();
}
And here's what I get
1>------ Build started: Project: sdl tut, Configuration: Debug Win32 ------
1> main.cpp
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:\Users\Matt\documents\visual studio 2010\Projects\sdl tut\Debug\sdl tut.exe : fatal error LNK1120: 1 unresolved externals
There's probably an easy fix that's just blown right past me.
#include <iostream>
#include "conio.h"
#include "sdl.h"
using namespace std;
void main()
{
int SDL_Init(Uint32 flags);
void SDL_Quit(void);
_getch();
}
And here's what I get
1>------ Build started: Project: sdl tut, Configuration: Debug Win32 ------
1> main.cpp
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:\Users\Matt\documents\visual studio 2010\Projects\sdl tut\Debug\sdl tut.exe : fatal error LNK1120: 1 unresolved externals
There's probably an easy fix that's just blown right past me.