Page 1 of 1

Use of undeclared identifier regarding remote API constants

Posted: 10 Nov 2016, 12:09
by RoflHamster
Hi folks,

I'm trying to use the remote C ++ API offered by V-REP. But when I try to compile the example bubbleRobClient.cpp I get the error message "error: use of undeclared identifier 'simx_opmode_streaming' ". It makes sense thoug, because I couldn't find a .h or .c file where all the constants (this site: http://www.coppeliarobotics.com/helpFil ... stants.htm ) are defined? Am I missing a file, that has to be included?

Edit: Solved it: Compiling was successful with following src files in my project:

bubbleRobClient.cpp
extApi.c
extApi.h
extApiInternal.h
extApiPlatform.c
extApiPlatform.c

All above in folder programming/remoteApi. Following in folder programming/include.

v_repConst.h

After that i needed to add #define MAX EXT_API CONNECTIONS 255 to the files extApi.c, extApiInternal.h and extApiPlatform.c. Last step was adding NON_MATLAB_PARSING to the file extApi.h.

Hope this helps somebody in the future!