Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years, 5 months ago.
Help: Program compiles on server but not locally
Hi So i'm using a 3rd party lib that fails to compile under GCC_ARM but is fine in the online compiler.
Any ideas what i'm doing wrong. is there a setting on local compiler i need to use?
Cheers
Alex
Output from local compile:
D:\work\mbed\mbed-assimilate-json>mbed compile
Building project mbed-assimilate-json (K64F, GCC_ARM)
Scan: .
Scan: FEATURE_BLE
Scan: FEATURE_COMMON_PAL
Scan: FEATURE_LWIP
Scan: FEATURE_UVISOR
Scan: FEATURE_ETHERNET_HOST
Scan: FEATURE_LOWPAN_BORDER_ROUTER
Scan: FEATURE_LOWPAN_HOST
Scan: FEATURE_LOWPAN_ROUTER
Scan: FEATURE_NANOSTACK
Scan: FEATURE_NANOSTACK_FULL
Scan: FEATURE_THREAD_BORDER_ROUTER
Scan: FEATURE_THREAD_END_DEVICE
Scan: FEATURE_THREAD_ROUTER
Scan: FEATURE_STORAGE
Scan: mbed
Scan: env
Compile [ 4.3%]: at24mac.cpp
Compile [ 4.5%]: MbedJSONValue.cpp
[Error] MbedJSONValue.h@357,9: expected unqualified-id before '' token
[Error] MbedJSONValue.h@357,0: expected ')' before '' token
[Error] MbedJSONValue.cpp@244,1: expected '}' at end of input
[Error] MbedJSONValue.h@355,116: expected unqualified-id at end of input
[ERROR] In file included from .\MbedJSONValue\MbedJSONValue.h:38:0,
from .\MbedJSONValue\MbedJSONValue.cpp:1:
.\MbedJSONValue\MbedJSONValue.h:357:9: error: expected unqualified-id before '' token
int getc() {
^
.\MbedJSONValue\MbedJSONValue.h:357:9: error: expected ')' before '' token
.\MbedJSONValue\MbedJSONValue.cpp:244:1: error: expected '}' at end of input
}
^
In file included from .\MbedJSONValue\MbedJSONValue.cpp:1:0:
.\MbedJSONValue\MbedJSONValue.h:355:116: error: expected unqualified-id at end of input
input(const char * first, const char * last) : cur_(first), end_(last), last_ch_(-1), ungot_(false), line_(1) {};
^
[mbed] ERROR: "c:\python27\python.exe" returned error code 1.
[mbed] ERROR: Command "c:\python27\python.exe -u D:\work\mbed\mbed-assimilate-json\mbed-os\tools\make.py -t GCC_ARM -m K64F source . build .\BUILD\K64F\GCC_ARM" in "D:\work\mbed\mbed-assimilate-json"
-
NB source for MbedJSONValue is at https://developer.mbed.org/users/samux/code/MbedJSONValue/docs/tip/classMbedJSONValue.html