kastnermario / yaml-cpp

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

Build error caused by graphbuilder.h (here: VS2003) #96

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create VS2003 project files
   set TDIR=vc2003 & set CMGEN="Visual Studio 7 .NET 2003"
   "%ProgramFiles%\Microsoft Visual Studio .NET 2003\VC7\bin\vcvars32.bat"
   cd /d C:\Coding\yaml-cpp\
   mkdir bin\%TDIR%
   cd bin\%TDIR%
   del /s /q * & rmdir /s /q .
   cmake -DBUILD_SHARED_LIBS=OFF -DMSVC_SHARED_RT=OFF -G %CMGEN% ..\..
2. Open project files in VS2003
3. Build solution

What is the expected output? What do you see instead?
Expected is that graphbuilderadapter.cpp and graphbuilder.cpp compile.
Instead the following error message is displayed:
C:\Coding\yaml-cpp\trunk\include\yaml-cpp\contrib\graphbuilder.h(46): error 
C2027: use of undefined type 'YAML::Mark'

What version of the product are you using? On what operating system?
trunk r438, Visual Studio 2003 SP1

Please provide any additional information below.

Original issue reported on code.google.com by matthias...@gmail.com on 2 Mar 2011 at 8:04

GoogleCodeExporter commented 8 years ago
Visual Studio 2005 SP1 complains about the same problem.

Original comment by matthias...@gmail.com on 2 Mar 2011 at 8:18

GoogleCodeExporter commented 8 years ago
It looks like VS isn't happy about casting a forward-declared type to void (it 
was just to eliminate the "unused parameter" compiler warning). Fixed, r439.

Original comment by jbe...@gmail.com on 2 Mar 2011 at 8:31

GoogleCodeExporter commented 8 years ago
And Visual Studio 2008 SP1 gives also the same error.

Original comment by matthias...@gmail.com on 2 Mar 2011 at 8:37

GoogleCodeExporter commented 8 years ago
Sorry, was typing while you posted.

Original comment by matthias...@gmail.com on 2 Mar 2011 at 8:38

GoogleCodeExporter commented 8 years ago
:)

Original comment by jbe...@gmail.com on 2 Mar 2011 at 8:44

GoogleCodeExporter commented 8 years ago
VS2008: all 4 configurations built
VS2005: all 4 configurations built
VS2003: all 4 configurations built (library only)

Original comment by matthias...@gmail.com on 2 Mar 2011 at 9:18