[ODE] Why no __declspec(dllexport)

Dominique Louis Dominique at SavageSoftware.com.au
Tue Apr 27 12:59:57 MST 2004


This is probably a silly questionm, but how to non-microsoft compilers 
know that a function is to be exported from within a Shared Object/DLL ( 
for example )?

Dominique.

Martin C. Martin wrote:
> 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




More information about the ODE mailing list