[Trilinos-Users] compiling error with Teuchos
Hongyu Miao
jackymiao at gmail.com
Thu Feb 10 10:56:22 MST 2011
Sorry to send this again since the file name was spelled wrong.
Hi, All
Sorry to bother you with this. I'm new to Trilinos and I'm trying to compile
Trilinos 10.6.2 on Windows using CMake and V.S. 2010. The error messages I
got so far are listed below. If anyone can help (e.g., a quick fix), I will
appreciate a lot.
1. Epetra_CrsMatrix.cpp, line 2792, 'row' must be signed integer with
OpenMP on. This is easy to fix, but I'd like to report it;
2. Teuchos_SerializationTraits.hpp, line 50, I got a bunch of errors:
Error 393 error C2825: 'T': must be a class or namespace when
followed by '::'
.\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.h
pp 50
Error 394 error C2039:
'this_type_is_missing_a_specialization' : is not a member of '`global
namespace''
.\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp 50
Error 395 error C2146: syntax error : missing ')' before
identifier 'this_type_is_missing_a_specialization'
.\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.h
pp 50
Error 396 error C2059: syntax error : ')'
.\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.h
pp 50
Error 397 error C3861:
'this_type_is_missing_a_specialization': identifier not found
.\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.h
pp 50
Error 554 error C2825: 'T': must be a class or namespace when
followed by '::'
.\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.h
pp 50
Error 555 error C2039:
'this_type_is_missing_a_specialization' : is not a member of '`global
namespace''
.\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.h
pp 50
Error 556 error C2146: syntax error : missing ')' before
identifier 'this_type_is_missing_a_specialization'
.\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.h
pp 50
Error 557 error C2059: syntax error : ')'
.\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.h
pp 50
Error 558 error C3861:
'this_type_is_missing_a_specialization': identifier not found
.\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.h
pp 50
3. Teuchos_OrdinalTraits.hpp, line 89, one error message:
Error 633 error C2664:
'std::basic_string<_Elem,_Traits,_Ax>::basic_string(const
std::basic_string<_Elem,_Traits,_Ax> &)' : cannot convert parameter 1 from
'Thyra::Ordinal' to 'const std::basic_string<_Elem,_Traits,_Ax> &'
.\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_OrdinalTraits.hpp
89
4. I guess the errors above also triggered a number of error messages
in std::vector. Here is a part of what I got:
Error 5354 error C2039: 'difference_type' : is not a member of
'Teuchos::RCP<T>' C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\vector 1544
Error 5355 error C2146: syntax error : missing ',' before
identifier 'difference_type' C:\Program Files (x86)\Microsoft Visual
Studio 10.0\VC\include\vector 1544
Error 5356 error C2065: 'difference_type' : undeclared
identifier C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\vector 1544
Error 5357 error C2955: 'std::_Iterator012' : use of class
template requires template argument list C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\include\vector 1548
Error 5358 error C2039: 'size_type' : is not a member of
'Teuchos::RCP<T>' C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\vector 1550
Error 5359 error C2146: syntax error : missing ';' before
identifier '_Sizet' C:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\include\vector 1550
Error 5360 error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\include\vector 1550
Error 5361 error C4430: missing type specifier - int assumed.
Note: C++ does not support default-int C:\Program Files
(x86)\Microsoft Visual Studio 10.0\VC\include\vector 1550
Error 5362 error C2061: syntax error : identifier '_Sizet'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\vector
1558
Thanks,
Hongyu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20110210/82a8a6eb/attachment-0001.html
More information about the Trilinos-Users
mailing list