Hi All,
I am having problems with OSGBaseTypeTraits.h...
/home/andrew/code/OpenSG-18/local/include/OpenSG/OSGBaseTypeTraits.h: In
static member function ‘static std::string osg::TypeTraits<long unsigned
int>::putToString(osg::UInt64)’:
/home/andrew/code/OpenSG-18/local/include/OpenSG/OSGBaseTypeTraits.h:678:
error: expected `)' before ‘PRIu64’
To get it to work I did this, don't know if its correct or not though...
---
/home/andrew/code/OpenSG-18/local/include/OpenSG/OSGBaseTypeTraits.hbk
2010-06-15 23:36:21.097612299 +0100
+++ /home/andrew/code/OpenSG-18/local/include/OpenSG/OSGBaseTypeTraits.h
2010-06-15 23:34:06.129612491 +0100
@@ -675,7 +675,8 @@
{
Char8 buffer[25];
#ifdef OSG_LINUX_TYPES
- sprintf(buffer, "%"PRIu64, val );
+// sprintf(buffer, "%"PRIu64, val );
+ sprintf(buffer, "%lu", val );
#else
sprintf(buffer, "%llu", val);
#endif
@@ -766,7 +767,8 @@
Char8 buffer[25];
#ifdef OSG_LINUX_TYPES
- sprintf(buffer, "%"PRIi64, val);
+// sprintf(buffer, "%"PRIi64, val);
+ sprintf(buffer, "%lu", val);
#else
sprintf(buffer, "%lli", val);
#endif
Ta,
Andrew
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users