There is such code:
#define GDMLExtReader_H 1 #ifndef _WIN32 #include
Visual Studio compiles and runs, but when you try to compile with gcc under Ubuntu falls out with an error:
In member function Type* GDMLExtReader::GetPtr(const G4String&, const std::map > >&)': include/GDMLExtReader.hh: error: expected ;' before pos' include/GDMLExtReader.hh: error: pos' was not declared in this scope
If the function create a variable and not an iterator, i.e. std::map pos2, then everything works.
Error manifested when creating the iterator.