I'm using Cocos2d-x v3.6
for win32 desktop, Visual studio 2013
and C++.
There are many errors appeared When compiling my project, and these errors because of the linker unable to linking between my project and cocos2d-x library files .lib
, although I have set all settings correctly.
The picture in its large size: Show me.
Firstly, the following is the folder that has the library .lib
files:
Secondly, the visual studio settings that I added:
Now, What is the reason behind these errors.
You need to get rid of the
dllimport
anddllexport
parts. Seecocos\platform\win32\CCPlatformDefine-win32.h
:To do that, just add
CC_STATIC
to the preprocessor definitions of your cocos2d-x library project, and the project linking with it.