Hello, this may be a problem so I am posting it here.
I need to write a configuration parser under cygwin and I am trying to use
yaml-cpp. I managed to compile it fine with cmake, getting:
-- Install configuration: "Release"
-- Installing: /usr/local/lib/libyaml-cpp.a
-- Installing: /usr/local/include/yaml-cpp/aliasmanager.h
-- Installing: /usr/local/include/yaml-cpp/anchor.h
-- Installing: /usr/local/include/yaml-cpp/conversion.h
-- Installing: /usr/local/include/yaml-cpp/dll.h
-- Installing: /usr/local/include/yaml-cpp/emitfromevents.h
-- Installing: /usr/local/include/yaml-cpp/emitter.h
-- Installing: /usr/local/include/yaml-cpp/emittermanip.h
-- Installing: /usr/local/include/yaml-cpp/eventhandler.h
-- Installing: /usr/local/include/yaml-cpp/exceptions.h
-- Installing: /usr/local/include/yaml-cpp/iterator.h
-- Installing: /usr/local/include/yaml-cpp/ltnode.h
-- Installing: /usr/local/include/yaml-cpp/mark.h
-- Installing: /usr/local/include/yaml-cpp/node.h
-- Installing: /usr/local/include/yaml-cpp/nodeimpl.h
-- Installing: /usr/local/include/yaml-cpp/nodereadimpl.h
-- Installing: /usr/local/include/yaml-cpp/nodeutil.h
-- Installing: /usr/local/include/yaml-cpp/noncopyable.h
-- Installing: /usr/local/include/yaml-cpp/null.h
-- Installing: /usr/local/include/yaml-cpp/ostream.h
-- Installing: /usr/local/include/yaml-cpp/parser.h
-- Installing: /usr/local/include/yaml-cpp/stlemitter.h
-- Installing: /usr/local/include/yaml-cpp/stlnode.h
-- Installing: /usr/local/include/yaml-cpp/traits.h
-- Installing: /usr/local/include/yaml-cpp/yaml.h
-- Installing: /usr/local/include/yaml-cpp/anchordict.h
-- Installing: /usr/local/include/yaml-cpp/graphbuilder.h
-- Installing: /usr/local/bin/pkgconfig/yaml-cpp.pc
Then I compile the test code (main.cpp and monsters.yaml) this way
g++ -Wall main.cpp -I/usr/local/include/ -L/usr/local/lib/ -lyaml-cpp -o test
It compiles fine. When I run it though I get an error when it calls:
parser.GetNextDocument(doc).
Using gdb the error is:
Program received signal SIGSEGV, Segmentation fault. 0x00466554 in
YAML::RegEx::MatchUnchecked ()
Can anybody help please?
I am using the last yaml version 0.2.6 under cygwin and xp. Thanks, l.
Original issue reported on code.google.com by lore.ago...@gmail.com on 29 Jun 2011 at 8:34
Original issue reported on code.google.com by
lore.ago...@gmail.com
on 29 Jun 2011 at 8:34