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. 

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.

Regards, Johannes.

--
Johannes Schäfer, B.Sc.
Studentischer Mitarbeiter
Geschäftsfeld Virtuelle Produktentstehung
Fraunhofer-Institut für Produktionsanlagen und Konstruktionstechnik IPK
Pascalstraße 8-9
10587 Berlin
Tel.: +49 (0)30 / 3 90 06-266
Fax: +49 (0)30 / 3 91 10 37
mailto:[email protected]
http://www.ipk.fraunhofer.de

Das Fraunhofer IPK ist DQS-zertifiziert nach ISO 9001:2008.


------------------------------------------------------------------------------
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

Reply via email to