0

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.

Charles
  • 50,943
  • 13
  • 104
  • 142

1 Answers1

2

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

refaelos
  • 7,927
  • 7
  • 36
  • 55
  • Thank you for replying. but I don't have this folder, I compile my project using Visual studio IDE, it occurs errors,but it now is working when using android ADT, do you have any solutions? thank you. – Shen Guow Lee Jan 05 '14 at 11:33
  • Why are you using "Visual studio IDE" ? – refaelos Jan 05 '14 at 12:50