Hello Michael,
On 08/07/2012 03:56 AM, Michael Raab wrote:
their seems to be an interference between
- OSGQBit.h (line 32)
template <>
struct FieldDataTraits1<QBit> :
public FieldTraitsIntegralRecurseMapper<QBit>
and
- OSGSysFieldDataType.h (line 235)
template <>
struct OSG_BASE_DLLMAPPING FieldDataTraits<UInt8> :
public FieldTraitsIntegralRecurseMapper<UInt8>
The problem only occurs when trying to link the debug version of OpenSG1.8. The
release version links fine.
I have no clue, but I guess vs2010 has some default linker settings (that are
different to the default settings in vs2005) when applying the /DEBUG flag...
I fixed the link problem by introducing I new struct called
FieldTraitsIntegralRecurseMapper1, but I have no idea if this solution is
correct and smart. Patch is attached.
hmm, the FieldDataTraits1<QBit> in OSGQBit.h is missing a
OSG_SYSTEMLIB_DLLMAPPING annotation. I'm wondering if that somehow
causes the compiler to create a separate instantiation of
FieldTraitsIntegralRecurseMapper<UInt8> instead of pulling in the one
from OSGBase.dll [1]?
Would you mind giving the attached a try and see if it fixes the problem?
Cheers,
Carsten
[1] I *think* that is the underlying problem: there is a second
instantiation of FieldTraitsIntegralRecurseMapper<UInt8> created that
conflicts with the one from OSGBase.dll - if that's the case, the
(puzzling to me) question is of course why that happens ;)
Index: Source/System/NodeCores/Drawables/VolRen/OSGQBit.h
===================================================================
RCS file: /cvsroot/opensg/OpenSG/Source/System/NodeCores/Drawables/VolRen/OSGQBit.h,v
retrieving revision 1.3
diff -u -r1.3 OSGQBit.h
--- Source/System/NodeCores/Drawables/VolRen/OSGQBit.h 18 Jul 2008 07:03:24 -0000 1.3
+++ Source/System/NodeCores/Drawables/VolRen/OSGQBit.h 8 Aug 2012 19:52:13 -0000
@@ -30,7 +30,7 @@
*/
template <>
-struct FieldDataTraits1<QBit> :
+struct OSG_SYSTEMLIB_DLLMAPPING FieldDataTraits1<QBit> :
public FieldTraitsIntegralRecurseMapper<QBit>
{
static DataType _type;
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users