Updated by Alexander Shishkov about 13 years ago
Hi,
I am trying to use OpenCV [[OpenCV]] in a project, that will use the stdcall calling convention.
OpenCV [[OpenCV]] is compiled as cdecl, but the header files do not declare the free and static functions with +cdecl.
Compiling OpenCV [[OpenCV]] manually as stdcall failes, because internal functions, that are for example passed as function pointers to qsort in stdlib.h (which requires cdecl), are not declared properly.
I did not find a way (bending #defines etc.) to get OpenCV [[OpenCV]] to use stdcall without hacking around in the code.
Because I can not compile my project cdecl, I modified the OpenCV [[OpenCV]] header files, so that the free and static functions now use CV_CDECL.
Is there an easier way to work around this problem or should this be corrected in future versions of OpenCV? [[OpenCV]]?
Regards,
Dobias
I am trying to use OpenCV [[OpenCV]] in a project, that will use the stdcall calling convention.
OpenCV [[OpenCV]] is compiled as cdecl, but the header files do not declare the free and static functions with +cdecl.
Compiling OpenCV [[OpenCV]] manually as stdcall failes, because internal functions, that are for example passed as function pointers to qsort in stdlib.h (which requires cdecl), are not declared properly.
I did not find a way (bending #defines etc.) to get OpenCV [[OpenCV]] to use stdcall without hacking around in the code.
Because I can not compile my project cdecl, I modified the OpenCV [[OpenCV]] header files, so that the free and static functions now use CV_CDECL.
Is there an easier way to work around this problem or should this be corrected in future versions of OpenCV? [[OpenCV]]?
Regards,
Dobias