kastnermario / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

error compiling with visual studio 2008 #40

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello, 

i am trying to compile the library extracted from yaml-cpp-0.2.1.tar.gz
with visual studio 2008 express edition in windowsXP.

i am getting these errors.

i really can't understand that code :)

commenting the "namespace fallback" code
i get some further errors linking the exe.

let me know if i can help ..

Creating temporary file "c:\Documents and 
Settings\gaddo\Desktop\yaml\Debug\RSP00000A40802260.rsp" with contents
[
/Od /I "include" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Fo"Debug\\" 
/Fd"Debug\vc90.pdb" /W3 /c /Zi /TP ".\yaml-reader\tests.cpp"

".\yaml-reader\parsertests.cpp"

".\yaml-reader\emittertests.cpp"
]
Creating command line "cl.exe @"c:\Documents and 
Settings\gaddo\Desktop\yaml\Debug\RSP00000A40802260.rsp" /nologo 
/errorReport:prompt"
 Output Window      Compiling...
emittertests.cpp
c:\documents and settings\gaddo\desktop\yaml\include\nodereadimpl.h(41) : 
error C2061: syntax error : identifier 'flag'
c:\documents and settings\gaddo\desktop\yaml\include\nodereadimpl.h(41) : 
error C2809: 'operator ,' has no formal parameters
parsertests.cpp
c:\documents and settings\gaddo\desktop\yaml\include\nodereadimpl.h(41) : 
error C2061: syntax error : identifier 'flag'
c:\documents and settings\gaddo\desktop\yaml\include\nodereadimpl.h(41) : 
error C2809: 'operator ,' has no formal parameters
tests.cpp
c:\documents and settings\gaddo\desktop\yaml\include\nodereadimpl.h(41) : 
error C2061: syntax error : identifier 'flag'
c:\documents and settings\gaddo\desktop\yaml\include\nodereadimpl.h(41) : 
error C2809: 'operator ,' has no formal parameters
Generating Code...

Original issue reported on code.google.com by marco.ga...@gmail.com on 8 Sep 2009 at 8:02

GoogleCodeExporter commented 8 years ago
I'm not sure why Visual Studio didn't like it, but I changed it slightly (and 
updated
the Visual Studio project files) and it seems to work now (r262). I'll update 
the
zipped version shortly.

Original comment by jbe...@gmail.com on 8 Sep 2009 at 9:01