Comments (6)
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.
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.
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.
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.
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.
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)
- Using yaml-cpp with gcc 4.3
- Segmentation Fault on yaml-cpp-0.5.3 HOT 1
- GCC undefined reference to 'vtable for YAML::EmitFromEvents' HOT 2
- Unresolve external symbol "__declspec(dllimpor) xxx" HOT 3
- YAML::LoadFile issue HOT 4
- Release file name 0.8.0 breaks naming convention HOT 6
- Empty sequence is not emitted correctly when used as a key in flow style HOT 2
- [Question&Proposition] What is the best way to edit nested structures in place YAML::Node ? HOT 12
- Is it possible to provide the message digests for the released source code tarballs? HOT 2
- YAML::Scanner needs to have dll-interface to be used by clients of class YAML::Parser HOT 5
- null keys HOT 3
- Running under the Chinese folder throws an exception HOT 1
- Node problem on version 0.8.0, impl.h can't pass compile HOT 2
- Add more hits to the error "Error msg: bad conversion" HOT 1
- Inconsistency bug or a feature in 0.7.0 HOT 7
- Figuring out if a string will round-trip
- Cannot specify link libraries for target "yaml-cpp"
- Building robot_localization pkg error with yaml-cpp target not found HOT 1
- YAML Emitter using YAML::DoubleQuoted when emitted in a destructor of a staticly created struct/class
- Numbers are emitted wrongly under non-C locales. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yaml-cpp.