jpouderoux / libcitygml

C++ CityGML parser for 3D applications
https://code.google.com/p/libcitygml/
GNU Lesser General Public License v2.1
2 stars 0 forks source link

Small error (#include <typeinfo>) #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile latest svn version with g++
2.
3.

What is the expected output? What do you see instead?
The compilation fails with:
[ 14%] Building CXX object src/CMakeFiles/citygml.dir/parser.o
/home/patrick/projects/libcitygml-read-only-2/src/parser.cpp: In function 
‘void parseVecList(std::stringstream&, std::vector<T, std::allocator<_CharT> 
>&)’:
/home/patrick/projects/libcitygml-read-only-2/src/parser.cpp:235: error: must 
#include <typeinfo> before using typeid
/home/patrick/projects/libcitygml-read-only-2/src/parser.cpp: In function 
‘void parseVecList(std::stringstream&, std::vector<T, std::allocator<_CharT> 
>&, GeoTransform*)’:
/home/patrick/projects/libcitygml-read-only-2/src/parser.cpp:251: error: must 
#include <typeinfo> before using typeid

What version of the product are you using? On what operating system?
Ubuntu 10.04

Please provide any additional information below.
The issue is easily solved by adding #include <typeinfo> in the parser.cpp 
(just as the error reveals).

That is all... after changing this the build is successful. 

Original issue reported on code.google.com by hanckmann@gmail.com on 28 Sep 2010 at 8:41

GoogleCodeExporter commented 9 years ago
Hello Patrick,
Thanks for your report,
This has been merged in the trunk (rev. 99)

Regards,

Manuel

Original comment by garnier....@gmail.com on 28 Sep 2010 at 9:33