using OpenCV in a project with stdcall (Bug #922)
Description
Hi,
I am trying to use OpenCV in a project, that will use the stdcall calling convention.
OpenCV is compiled as cdecl, but the header files do not declare the free and static functions with +cdecl.
Compiling 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 to use stdcall without hacking around in the code.
Because I can not compile my project cdecl, I modified the 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?
Regards,
Dobias
History
Updated by Alexander Shishkov about 13 years ago
- Description changed from Hi, I am trying to use [[OpenCV]] in a project, that will use the stdcall ca... to Hi, I am trying to use OpenCV in a project, that will use the stdcall callin... More
Updated by Vadim Pisarevsky almost 13 years ago
lowering priority of the bug, since not many people complained about it. And it's too much work to mark all the functions and static methods as CV_CDECL.
- Priority changed from High to Low
Updated by Do Bi almost 13 years ago
OK. We changed our project to cdecl anyway because it was less work than manually editing the OpenCV header files with every new release. ;-)
Updated by Vadim Pisarevsky over 12 years ago
as we hardly ever do this, let's just cancel the ticket
- Status changed from Open to Cancelled