parsing errors when debugging

Hello,
I’m a newbie in QNX developping world.
I’m developping some drivers for a NI board, I’ve made until now a small
application wich works on Visual C++ but not on QNX.
I have QNX Momentics developpement suite V6.3.0 SP3.
While building the application I get a 100 of errors saying :

parse error before _stdcall' parse error before _cdecl’

all the same
an example of a line on .h file that gives the error :
int32 DllExport __CFUNC DAQmxResetWriteAttribute (TaskHandle taskHandle,
int32 attribute);

this line gives the error :

parse error before `_stdcall’.

I tried to change the error parser without any results

If someone could help me it will very appreciated, I really need it.

thank you

Any keywords that start with ‘_’ are vendor proprietary. Specifically,
_stdcall and _cdecl are options for the MS compiler that determine how
the function APIs and names are generated, and those calling conventions
aren’t available with the GCC compiler.

My recommendation would be to add this above your #includes:

#define _stdcall
#define _cdecl

that will define those keywords to an empty string.

–Andy


Hello,
I’m a newbie in QNX developping world.
I’m developping some drivers for a NI board, I’ve made until now a small
application wich works on Visual C++ but not on QNX.
I have QNX Momentics developpement suite V6.3.0 SP3.
While building the application I get a 100 of errors saying :

parse error before _stdcall' parse error before _cdecl’

all the same
an example of a line on .h file that gives the error :
int32 DllExport __CFUNC DAQmxResetWriteAttribute (TaskHandle taskHandle,
int32 attribute);

this line gives the error :

parse error before `_stdcall’.

I tried to change the error parser without any results

If someone could help me it will very appreciated, I really need it.

thank you