I have looked at tutorials on how to build DLLs etc. and they all say you need to have __declspec(etc.) before every class/function you want exported.
I have run grep *.* through the Irrlicht directory and it returns only 3 finds for __declspec()
How can Irrlicht work as a DLL if it doesn't have these?
Irrlicht source question
Irrlicht source question
TheQuestion = 2B || !2B
But still there isn't __declspec(...) before every class exported..?
I see only createDevice/Ex has it.
I see only createDevice/Ex has it.
Code: Select all
00158 #ifdef _IRR_WINDOWS_API_
00159
00160 #ifndef _IRR_STATIC_LIB_
00161 #ifdef IRRLICHT_EXPORTS
00162 #define IRRLICHT_API __declspec(dllexport)
00163 #else
00164 #define IRRLICHT_API __declspec(dllimport)
00165 #endif // IRRLICHT_EXPORT
00166 #else
00167 #define IRRLICHT_API
00168 #endif // _IRR_STATIC_LIB_
Code: Select all
IRRLICHT_API IrrlichtDevice* IRRCALLCONV createDevice(
00278 video::E_DRIVER_TYPE deviceType = video::EDT_SOFTWARE,
00279 const core::dimension2d<s32>& windowSize = (core::dimension2d<s32>(640,480)), // paranthese are necessary for some compilers
00280 u32 bits = 16,
00281 bool fullscreen = false,
00282 bool stencilbuffer = false,
00283 bool vsync = false,
00284 IEventReceiver* receiver = 0,
00285 const c8* sdk_version_do_not_use = IRRLICHT_SDK_VERSION);
00286
00288
00295 IRRLICHT_API IrrlichtDevice* IRRCALLCONV createDeviceEx(
00296 const SIrrlichtCreationParameters& parameters);
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Yup. (On Windows) run depends on any of the DirectX Dlls and see how few symbols they actually export.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way