SOOMLA using jansson, and can't solve LNK2019

284 views Asked by At

I am developing a game using cocos2d-x and SOOMLA as my Google Wallet extensions, but SOOMLA uses jansson as its json parser; I included SOOMLA .cpp,.h and janson, but while compiling, the following error occurs.

error LNK2019: Cannot solve unresolved external error _json_true
at function "public: static struct json_t * __cdecl 
CCSoomlaJsonHelper::getJsonFromCCObject(class cocos2d::CCObject *)"
(?getJsonFromCCObject@CCSoomlaJsonHelper@@SAPAUjson_t@@PAVCCObject@cocos2d@@@Z)
was referebce 
E:\projects\cocos2d-x-2.1.5\template\multi-platform-cpp\proj.win32\CCSoomlaJsonHelper.obj   WuXia

I'm sure I have added jasson project to my INCLUDE path, but it seems not to work.

1

There are 1 answers

2
refaelos On

Remove the folder emscripten from external. It solved many linker issues in SOOMLA in the past.