1>Linking…
1>AppDelegate.obj : error LNK2001: unresolved external symbol “public: virtual bool __thiscall cocos2d::CCEGLView::Create(unsigned short const *,int,int)” (?Create@CCEGLView@cocos2d@UAE_NPBGHH
Z)
1>…win32\cocos3.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at “file://C:3\Debug\BuildLog.htm”
1>cocos3 - 2 error(s), 0 warning(s)
Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
I created Qt application. Then added necessary settings to the project (include directories, additional dependencies, library directories like in template “cocos2d-win32 Application”). Also added source, header and resource files of “Hello world” but main.cpp:
#include "main.h"
#include "AppDelegate.h"
#include "cocos3.h"
#include
int main(int argc, char *argv[]) // Created by Qt
{
QApplication a(argc, argv);
cocos3 w;
w.show();
AppDelegate app; // Copied from Hellow world
cocos2d::CCApplication::sharedApplication().run(); //
return a.exec();
}
I don’t know what main function should I write: from cocos2d-x application or that was created by Qt. Could you help me with error and main function?