certik / yaml-cpp

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

Compile error with msvc express 2010, does it require c++11 ? #193

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. latest yamlcpp 0.5
2. cmake gui, visual c++ express 2010 windows xp
3. build solution

Getting those compile errors, does yaml cpp now require c++11 ?

Error   26  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2734: 'lhs' : 
const object must be initialized if not extern  146
Error   27  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   147
Error   28  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'decode': 
identifier not found    147
Error   29  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   155
Error   30  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'encode': 
identifier not found    155
Error   31  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2734: 'lhs' : 
const object must be initialized if not extern  146
Error   32  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   147
Error   33  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'decode': 
identifier not found    147
Error   34  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   155
Error   35  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'encode': 
identifier not found    155
Error   36  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2734: 'lhs' : 
const object must be initialized if not extern  146
Error   37  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   147
Error   38  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'decode': 
identifier not found    147
Error   39  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   155
Error   40  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'encode': 
identifier not found    155
Error   41  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2734: 'lhs' : 
const object must be initialized if not extern  146
Error   42  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   147
Error   43  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'decode': 
identifier not found    147
Error   44  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   155
Error   45  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'encode': 
identifier not found    155
Error   46  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2734: 'lhs' : 
const object must be initialized if not extern  146
Error   47  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   147
Error   48  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'decode': 
identifier not found    147
Error   49  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   155
Error   50  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'encode': 
identifier not found    155
Error   51  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2734: 'lhs' : 
const object must be initialized if not extern  146
Error   52  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   147
Error   53  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'decode': 
identifier not found    147
Error   54  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   155
Error   55  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'encode': 
identifier not found    155
Error   56  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2734: 'lhs' : 
const object must be initialized if not extern  146
Error   57  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   147
Error   58  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'decode': 
identifier not found    147
Error   59  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   155
Error   60  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'encode': 
identifier not found    155
Error   61  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2734: 'lhs' : 
const object must be initialized if not extern  146
Error   62  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   147
Error   63  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'decode': 
identifier not found    147
Error   64  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   155
Error   65  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'encode': 
identifier not found    155
Error   66  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2734: 'lhs' : 
const object must be initialized if not extern  146
Error   67  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   147
Error   68  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'decode': 
identifier not found    147
Error   69  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C2027: use of 
undefined type 'YAML::convert<T>'   155
Error   70  C:\yaml-cpp\include\yaml-cpp\node\detail\impl.h error C3861: 'encode': 
identifier not found    155

Original issue reported on code.google.com by ezjonas on 12 Feb 2013 at 12:57

GoogleCodeExporter commented 9 years ago
No, it doesn't - this is just a bug.

Original comment by jbe...@gmail.com on 12 Feb 2013 at 2:10

GoogleCodeExporter commented 9 years ago
Same. Sad to know you lib unusable in Visual C++.
Need to find something else :/

Original comment by hakna...@gmail.com on 24 Feb 2013 at 9:45