[ODE] Why no __declspec(dllexport)

Jon Watte hplus-ode at mindcontrol.org
Tue Apr 27 12:15:40 MST 2004


> a) you can hide class functions from being exported by putting them in a 
> private implementation class, *or* via non-member static friends ( who 
> cares if this is ugly, you are trying to hide the function, remember )

This doesn't work. The "private" symbols still get exported if you 
"export everything non-static". Maybe you don't get the headers for 
those classes, but the symbols still sit there in the global name space, 
just waiting for a collision.

Cheers,

			/ h+




More information about the ODE mailing list