[ODE] Visual Studio project files
Rodrigo Hernandez
kwizatz at aeongames.com
Mon Feb 27 14:48:51 MST 2006
J. Perkins wrote:
>PS - The reason you can't use preprocessor variable to disable
>features is because Win32 DLLs need a .def file which lists all
>exported symbols. If you disable OPCODE with a preprocessor directive,
>you also need to remove all trimesh related symbols from the .def
>file. Premake gets around this by creating a .def file on the fly.
>
>
Actually, thats not true, you dont need a def file, just define the DLL
macro as done in config.h, and add a preprocessor definition of
DLL_EXPORT for the DLL project.
#if defined(DLL_EXPORT) && defined(WIN32)
#define DLL __declspec( dllexport )
#elif !defined(DLL_EXPORT) && defined(WIN32)
#define DLL __declspec( dllimport )
#else
#define DLL
#endif
Thats currently how MinGW generates the shared symbols for a DLL build.
Cheers!
More information about the ODE
mailing list