Hi, On Tue, 2012-12-04 at 18:48 +0800, Gerrit Voß wrote: > Hi, > > On Tue, 2012-12-04 at 10:56 +0100, Hannah Carbonnier wrote: > > Hi all, > > > > I work on a project that depends on OpenSG 2.0 and uses cmake. > > To enable ‘PRIx64’ macro, we have added this line in our CMakeList.txt > > file : > > add_definitions(-D__STDC_FORMAT_MACROS) > > > > Everything worked until we updated from Fedora 15 to Fedora 17 and (I > > think that is the problem but I'm not sure) from gcc 4.6.3 to gcc > > 4.7.2. With these new versions, we get the error : unable to find > > string literal operator ‘operator"" PRIx64’ > > > > Does somebody already had this problem and found a solution? > > short question, are you compiling with -std=c++11 active. That seems to > trigger a similar problem for me.
if yes, you have to have a space between the " and PRIx64, e.g. written as "PRIx64" it will resolve to ""x"" and this fails because "" is now an operator. Written as " PRIx64 still seems to resolve correctly. I'll have to check OpenSG against that. kind regards gerrit ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
