Log in or register to post comments

dynamic NUM_TARGETS change in .cpp file

August 5, 2013 - 4:47am #1

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.so
Compile++ arm    : VideoPlayback <= VideoPlayback.cpp
jni/VideoPlayback.cpp:86:38: error: array bound is not an integer constant before ']' token
jni/VideoPlayback.cpp:100:42: error: array bound is not an integer constant before ']' token
jni/VideoPlayback.cpp:139:49: error: array bound is not an integer constant before ']' token
jni/VideoPlayback.cpp:146:28: error: array bound is not an integer constant before ']' token
jni/VideoPlayback.cpp:153:39: error: array bound is not an integer constant before ']' token
jni/VideoPlayback.cpp:154:42: error: array bound is not an integer constant before ']' token
jni/VideoPlayback.cpp:161:44: error: array bound is not an integer constant before ']' token
.
..
.
.
.
.
.
.
 
Regards
Nag

dynamic NUM_TARGETS change in .cpp file

August 5, 2013 - 11:36am #2

That's the error you get when the array size isn't defined as a constant at compile time (e.g. NUM_TARGETS ).

Log in or register to post comments