tags:

views:

118

answers:

2

why do i keep getting this error "unresolved external symbol _mainCRTstartup"?

#include <stdio.h>
typedef enum race_location {
NEW_ORLEANS,
WASHINGTON_DC,
ST_LOUIS,
LOS_ANGELES,
CHICAGO
} race_location;
A: 

Is that ALL program? You need at least main() function in your app to run, create a new console add template and you'll see the proper declaration

Gobra
this is my header file, i thought i didnt need a main(), but i do though?
Sam
You need .cpp file as well with at least main() function defined - it's application's entry point
Gobra
A: 

Did You defined valid entry point? This is a console application?


int main(int argc, const char** argv)
{
  return 0;
}
loentar