By nagarajudbng
on Mon, 08/05/2013 - 11:47
HI team
to set targets dynamically in .cpp i removed cost key workd for NUM_TARGETS then i compiled in terminal , i am getting followin errror, where ever i used it in code. can u tele me why i am gettign this error.
Install : libQCAR.so => libs/armeabi/libQCAR.soCompile++ arm : VideoPlayback <= VideoPlayback.cppjni/VideoPlayback.cpp:86:38: error: array bound is not an integer constant before ']' tokenjni/VideoPlayback.cpp:100:42: error: array bound is not an integer constant before ']' tokenjni/VideoPlayback.cpp:139:49: error: array bound is not an integer constant before ']' tokenjni/VideoPlayback.cpp:146:28: error: array bound is not an integer constant before ']' tokenjni/VideoPlayback.cpp:153:39: error: array bound is not an integer constant before ']' tokenjni/VideoPlayback.cpp:154:42: error: array bound is not an integer constant before ']' tokenjni/VideoPlayback.cpp:161:44: error: array bound is not an integer constant before ']' token......... RegardsNag
dynamic NUM_TARGETS change in .cpp file
That's the error you get when the array size isn't defined as a constant at compile time (e.g. NUM_TARGETS ).