simplescene link error

neverending

20-08-2008 08:34:47

hi ,everybody,I am new in ogreode,here s my question.
when I complie the demo SimpleScene,I got the following error

MSVCRT.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

anyone know what s going wrong?
here are my additional dependencies lib
OgreOde_Core.lib
OgreOde_Prefab.lib
OgreMain.lib
user32.lib
OIS.lib
OgreOde_Loader.lib

rewb0rn

20-08-2008 18:39:19

you are just using the wrong main. you have a winmain right? just try int main(void) {} instead.

neverending

21-08-2008 02:19:07

thx ~ :) It works.But I cant understand why in other project winmain can work normally but not in this demos?

rewb0rn

21-08-2008 07:49:37

it has to be specified in the project properties, maybe it has been forgotten.

neverending

21-08-2008 14:02:14

thank u~ :D you are exllent~

rewb0rn

21-08-2008 16:54:08

too kind^^