Hi,
On Tue, 2005-03-08 at 16:41 +0100, Marcus Lindblom wrote: > Hi, > > I'm getting tons of these warnings when I build a dll which uses OpenSG > (v1.4, not cvs). > > OpenSG-1.4\include\OpenSG\OSGLog.h(200) : warning C4251: > 'osg::LogBuf::_chunkBag' : class 'std::list<_Ty>' needs to have > dll-interface to be used by clients of class 'osg::LogBuf' > > I assume there's something wrong with my defines, but I haven't found > anything in the docs to alleviate this. > > These are my defines: > > _DEBUG;WIN32;_WINDOWS;WINVER=0x0400;_WIN32_WINDOWS=0x0410;_WIN32_WINNT=0x0400;_OSG_HAVE_CONFIGURED_H_;OSG_WITH_GIF;OSG_WITH_TIF;OSG_WITH_JPG, > > OSG_BUILD_DLL, OSG_NEW_DLLS what seems to be missing is the OSG_BUILDXXXLIB define telling the system which library you are currently building and thus being able to decide on the import/export aspect of building windows dlls. Depending on the current lib the defines are : OSG_COMPILEBASELIB OSG_COMPILESYSTEMLIB OSG_COMPILEWINDOWGLUTLIB OSG_COMPILEWINDOWWIN32LIB only one define must be active at a time, the one for the lib you are currently building. regards, gerrit ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
