Hi, On Mon, 2009-09-14 at 15:06 +0200, Schaefer Johannes wrote: > Hello, > > i am developing a OpenSG application under windows xp with msvc 2008 sp1. I > am using Qt and osg 1.8 (self compiled). Furthermore I am using a library > with a self written simulation engine (as a static windows lib file). The > engine use some OpenSG function. Without my simulation engine everything is > fine. But when I try to compile my application with my engine the linker > complains about some unresolved external symbol. > > -- snip -- > 1>simeng2.lib(SimulatorEngine.obj) : error LNK2001: Nicht aufgelöstes > externes Symbol ""private: static char const * * osg::Log::_levelColor" > (?_levelco...@log@osg@@0PAPBDA)". > 1>simeng2.lib(SimulatorEngine.obj) : error LNK2001: Nicht aufgelöstes > externes Symbol ""private: static class osg::LockPool * > osg::FieldContainerPtrBase::_pRefCountLock" > (?_prefcountl...@fieldcontainerptrbase@osg@@0pavlockp...@2@A)". > 1>simeng2.lib(SimulatorEngine.obj) : error LNK2001: Nicht aufgelöstes > externes Symbol ""private: static class osg::FieldContainerType > osg::GroupBase::_type" (?_t...@groupbase@osg@@0vfieldcontainert...@2@A)". > -- snip -- > And some more. > > IMO, the problem is that my one lib is linked against the osg lib and my > application also linked against the lib. The functions are declared twice.
that looks more like not found symbols than double symbols. > Has anyone a idea how to fix this problem? Or has anybody a similar > constellation, a lib with osg bindings and a application with bindings to osg > and the lib. Without much knowledge of what is actually happening, e.g. what you compile/link with which settings, I would guess that you compile your simeng2.lib with static runtime settings and than try to link the dynamic OpenSG libs while linking you application, which is not going to work. You have to build everything that uses OpenSG with dynamic runtime settings, even if it is a static lib. kind regards, gerrit ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
