Page 1 of 1

Something weird with creating a new project

PostPosted: Jan 21, 2007 @ 4:01am
by guynemer
I've been trying to create a new project using edge , from scratch.

So far in vain, when I try to use a code entirely remade from scratch, it almost compiles but it ends up in an error :

error LNK2019: symbole externe non résolu _main référencé dans la fonction _mainCRTStartup


in english something like

error LNK2019: external symbal couldn't be resolved no reference to main in function _mainCRTStartup

It appears that it doens't find the entry point Edgemain ....


For the moment I have no other choice than open a project like Blastar, and remove all the parts I don't need, and modify the sources. That way it works....

..but still I would like to know why my method isn't workin :?

PostPosted: Jan 21, 2007 @ 5:18am
by Dan East
Sounds like you're linking to the wrong runtime binaries.

Dan East

PostPosted: Jan 21, 2007 @ 1:18pm
by guynemer
In both cases I link to the same libraries :/

But just to be sure , what should I check for that ?

PostPosted: Jan 21, 2007 @ 6:42pm
by edge
Hi Guynemer,

It seems the source file containing the EdgeMain function isn't compiled, or edgemain.h isn't included by the source file.

Try adding errors to your source file and make sure it is being compiled (the compiler should show an error message).

PostPosted: Jan 21, 2007 @ 11:05pm
by guynemer
Strangely, edgemain.h is included.

I 'm joining a simple solution with a code that doesn't compile.

PostPosted: Jan 22, 2007 @ 9:15am
by edge
Hi Guynemer,

The project seems to be a win32 console application which is incompatible with Edge. Try recreating the project as a native win32 windowed application.

PostPosted: Jan 22, 2007 @ 2:35pm
by guynemer
Oh ok, but when I use the graphic win32 application, it generates a lot of code for opening the graphic part. I'll try to get rid of all the code and import the edge code.