[ODE] Why no __declspec(dllexport)
Martin C. Martin
martin at metahuman.org
Tue Apr 27 07:43:57 MST 2004
Because ODE_API would be non-null only on Windows, but would need to
appear on a wide range of functions. For people working on other
platforms, this is a lot of unnecessary visual clutter.
It's essentially an attempt to stop Microsoft's bad design choices from
affecting programmers on other platforms. Or windows programmers that
use static libs, for that matter.
- Martin
Dominique Louis wrote:
> 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?
>
> Are most developers only using the static version of the ode?
>
> Is this likely to change in future?
>
>
> Thanks,
>
>
>
> Dominique
>
>
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
More information about the ODE
mailing list