[ODE] Why no __declspec(dllexport)

GARY VANSICKLE g.r.vansickle at worldnet.att.net
Tue Apr 27 21:00:13 MST 2004


> Hi all,
>    I was just wondering why the main ode code does not include a
> definition similar to...
> 
> #ifdef BUILD_DLL
> #define ODE_API __declspec(dllexport)
> #else
> #define ODE_API __declspec(dllimport)
> #endif
> 
> And then use ODE_API as part of the function declarations?
> 
> Does having the above code cause problems?
> 

You'd want to wrap it in an "#ifdef WINDOWS" (or whatever the right #define
is), but no, it wouldn't cause any problems.

Technical problems, that is ;-).




More information about the ODE mailing list