[ODE] some ode patches on sourceforge
Jon Watte (ODE)
hplus-ode at mindcontrol.org
Wed Nov 23 18:26:26 MST 2005
You can implement a C linkage function in C++, using C++ language
idioms. It'll still be callable and useful from C.
So, if someone wants to call dCollideSphereSphere from C, they can,
assuming we declare the linkage for them.
Cheers,
/ h+
Bram Stolk wrote:
> I'm not sure about this one, but I would say this patch is incorrect.
> Consider, e.g., dCollideSphereSphere()
> This func has normal C++ linkage, so extern "C" in the header would
> not be appropriate. (The func is implemented in C++, in a .cpp file).
>
> Only if someone wants to call dCollideSphereSphere() from C, you would
> need extern "C" tricks, and do the func implementation in C.
More information about the ODE
mailing list