Can't make a reference to external/json

Can't make a reference to external/json
0.0 0


I’ve been struggling for hours to make a reference to the json folder, but still can’t get it right :confused: . I guess I have to do that by modifying the file, but don’t know how and I keep getting this kind of errors:

@ error: undefined reference to ‘Json::Value::Value(Json::ValueType)’@

What should I do?


Maybe this can help

LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static

LOCAL_WHOLE_STATIC_LIBRARIES += easy_sqlite_static
LOCAL_WHOLE_STATIC_LIBRARIES += mo_file_reader_static


#EziSocial (Facebook)
LOCAL_WHOLE_STATIC_LIBRARIES += ezibyte_social_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dx_store_static



$(call import-module,cocos2dx)
$(call import-module,cocos2dx/platform/third_party/android/prebuilt/libcurl)
$(call import-module,CocosDenshion/android)
$(call import-module,extensions)

$(call import-module,libs/jsoncpp-src-0.5.0/
$(call import-module,libs/easySQLite/
$(call import-module,libs/moFileReaderSDK-0.1.3/

$(call import-module,KoalaLib/

$(call import-module,protocols/android)
#EziSocial (Facebook)
$(call import-module,ezibyte/ezisocial/android)
$(call import-module, extensions/cocos2dx-store/android/jni)


Thanks, but I would like to find a way of configuring my android project to work with the json files, provided by the cocos2d-x framework (and as I see you use jsoncpp-src-0.5.0). The thing is - I’ve created a multi-platform project and half the time I code using Xcode and the iOS project uses the files from external/json. I want the project’s files for all of the platforms to use the same json files.
I’m using cocos2d-x-3.0alpha1 and the json files are kept in cocos2d-x-3.0alpha1/external/json. All the files there are:

autolink.h      json_batchallocator.h   json_value.cpp          value.h
CMakeLists.txt  json.h                  json_valueiterator.inl  writer.h
config.h        json_internalarray.inl  json_writer.cpp
features.h      json_internalmap.inl    reader.h
forwards.h      json_reader.cpp         sconscript


ok i use cocos2dx 2.x version