energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
794 stars 672 forks source link

aJSON library won't compile on CC3200 MT #745

Open adrianF-TI opened 8 years ago

adrianF-TI commented 8 years ago

The aJSON "JSON_Serial" example compiles & runs fine on the non-MT implementation of the CC3200 LaunchPad. However, I get the following errors when trying to run the example with MT:

........ /Applications/Energia.app/Contents/Resources/Java/hardware/cc3200emt/libraries/aJson/aJSON.cpp:357: undefined reference to stringBufferCreate' /Applications/Energia.app/Contents/Resources/Java/hardware/cc3200emt/libraries/aJson/aJSON.cpp:419: undefined reference tostringBufferFree' /Applications/Energia.app/Contents/Resources/Java/hardware/cc3200emt/libraries/aJson/aJSON.cpp:409: undefined reference to stringBufferAdd' /Applications/Energia.app/Contents/Resources/Java/hardware/cc3200emt/libraries/aJson/aJSON.cpp:424: undefined reference tostringBufferToString' collect2: error: ld returned 1 exit status make: *\ [Json_Serial.cpp.elf] Error 1 /Applications/Energia.app/Contents/Resources/Java/tools/common/bin/make returned 2

JyunLongWu commented 8 years ago

Try taking out the two files inside the utility folder, and change the aJson.h file to include the files directly from the same directory