PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Something weird with creating a new project

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 :?
Sounds like you're linking to the wrong runtime binaries.

Dan East
In both cases I link to the same libraries :/

But just to be sure , what should I check for that ?
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).
Strangely, edgemain.h is included.

I 'm joining a simple solution with a code that doesn't compile.
Attachments:
edgetest.rar (223 KB)
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.
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.