Are you still having trouble with SDL? You have to add:
Code:
int main( int argc, char* args[] ) 
{
}