Load Json file on Android/Windows with Cocos2d-x

General discussion about the R.U.B.E editor
danspe
Posts: 6
Joined: Thu Nov 27, 2014 8:40 am

Re: Load Json file on Android/Windows with Cocos2d-x

Post by danspe »

I use both and both get the same linker error. That's why I was looking for some one who could explain the process for use with MSVS or Eclipse
iforce2d
Site Admin
Posts: 861
Joined: Sat Dec 22, 2012 7:20 pm

Re: Load Json file on Android/Windows with Cocos2d-x

Post by iforce2d »

I see. Basically the process is, you need to make sure the compiler is actually using the file that contains the function that it is complaining about. As it says, this function is not being found:

public: __thiscall b2dJson :: b2dJson (bool)

Unless you have changed things drastically, that function will most likely be in the b2dJson.cpp file. Are you sure the b2dJson.cpp file is being compiled?

It might help to turn on verbose output for the compiler and linker. I don't know the details of how to do that myself, but these links might help.

http://msdn.microsoft.com/en-us/library/wdsk6as6.aspx
http://stackoverflow.com/questions/1211 ... ry-verbose
Post Reply