Giter Site home page Giter Site logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Hmm.. this may be hard to debug. I can't seem to get gcc 3.2.3 installed on my 
mac
(at the moment - I'll try again later; I'll also try on Linux later). In the
meantime, the main error seems to be

../include/nodereadimpl.h: In member function `bool YAML::Node::Read(T&)
   const':
../include/nodereadimpl.h:53: syntax error before `,' token
../include/nodereadimpl.h:53: syntax error before `)' token

Can you narrow down which ',' it doesn't like? (Maybe move each to a separate 
line so
it tells you which line it is?) And also which ')' it doesn't like?

And worst case scenario I'll revert these changes. I had intended these as a 
slightly
experimental branch, but I was lazy and didn't actually branch after 0.2.0; but 
then
there was a reasonably major bug that I found in 0.2.0 (with complex keys 
(e.g., ?
key : value)) and I felt like it was urgent to patch it. But it's certainly 
possible
to revert just these Node::Read changes and keep the bug fix.

Original comment by [email protected] on 9 Sep 2009 at 4:48

  • Changed state: Accepted
  • Added labels: ****
  • Removed labels: ****

from yaml-cpp.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
I've tried installing gcc 3.2.3 on Ubuntu, but I've been unable. It doesn't 
exist in
the package manager (the earliest version is 3.4), so I tried compiling from 
source.
It appears that gcc 3.2.3. doesn't compile with gcc 4.* (I googled around, and 
other
people seemed to be having similar troubles).

So I installed gcc 3.4. and tried to compile gcc 3.2.3 using that, but I also 
ran
into compiling trouble.

I also asked my sysadmin at work to install gcc 3.2.3, but he declined.

So I don't have access to this compiler, and so I can't test any code on it. 
I'd be
happy to accept a patch that fixes the compile error; I'd like to keep the 
latest
code in the nodereadimpl.h file (which is correct C++, so it appears to be a 
bug that
gcc fixed), but I'd very much appreciate a workaround for the older compiler.

However, unless you have another suggestion for how to access gcc 3.2.3, I'm 
not sure
what I can do about this. 

Original comment by [email protected] on 15 Sep 2009 at 2:52

  • Added labels: ****
  • Removed labels: ****

from yaml-cpp.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Just a suggestion, but if you have a spare machine you can download an old ISO 
of Red
Hat from ftp://archive.download.redhat.com/pub/redhat/linux/ that has the older
compiler on it and test that way. Should be around version RH 7 or so IIRC...

Original comment by [email protected] on 15 Sep 2009 at 4:44

  • Added labels: ****
  • Removed labels: ****

from yaml-cpp.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Good idea! I installed a VM and installed Red Had 9 on it, which appears to 
have gcc 
3.2.2, and I'm getting the same errors described above. Now to work...

Original comment by [email protected] on 16 Sep 2009 at 1:44

  • Added labels: ****
  • Removed labels: ****

from yaml-cpp.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
The recent changes (r264) should allow an easy fallback for early versions of 
gcc. I
tried to fix the problem while maintaining the purpose of the trick, but I 
couldn't
manage it. These early versions of gcc seem to not like complicated template
arguments (even if they *could* be computed at compile time).

Anyways, please check out this revision to confirm that the library compiles
correctly for you. This patch will eventually go in version 0.2.3 when it's 
ready,
but there are more things I'd like to add before then.

Also, the testing framework will *not* compile with an old version of gcc 
(since it
uses the trick that we need to bypass).

Original comment by [email protected] on 16 Sep 2009 at 4:08

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

from yaml-cpp.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 17, 2024
Just a note for you - the reason why I needed GCC 3.2.3 was Oracle 10g. Its C++
access library OCCI was not able to compile with higher versions of GCC.

Recently we have moved to Oracle 11g and had to switch to GCC 3.4.6, so my 
problems
regarding this issue are already gone.

But anyways - thank you for the effort. It will hopefully be useful for someone 
else
who must still work with Oracle 10g.

Original comment by [email protected] on 1 Oct 2009 at 10:40

  • Added labels: ****
  • Removed labels: ****

from yaml-cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.