Program does not contain a static 'Main' method suitable for an entry point
I have Dev Cpp based project and just moving the sources to VS 2008.
I've been creating a "C#" project "Console App" and just adding the sources then it wont compile because of that error:
C:\blah\blah\blah.exe does not contain a static 'Main' method suitable for an entry point.
Thanks.
I guess there must be something wrong with that code
Code:
#include "main.h"
void init_memory();
void main_loop();
int main(int argc, char *argv[])
{
some code
}
Re: Program does not contain a static 'Main' method suitable for an entry point
Re: Program does not contain a static 'Main' method suitable for an entry point
Do you have another main() method defined in the header file ?
Re: Program does not contain a static 'Main' method suitable for an entry point
Quote:
Originally Posted by
DarthmooN
I have Dev Cpp based project and just moving the sources to VS 2008.
I've been creating a "C#" project "Console App" and just adding the sources then it wont compile because of that error:
C:\blah\blah\blah.exe does not contain a static 'Main' method suitable for an entry point.
Thanks.
I guess there must be something wrong with that code
Code:
#include "main.h"
void init_memory();
void main_loop();
int main(int argc, char *argv[])
{
some code
}
You are compiling that code as c#?