[Trilinos-Users] comiling error with Teuchos

Bartlett, Roscoe A rabartl at sandia.gov
Fri Feb 11 10:55:42 MST 2011


Hongyu,

Currently we have no official automated testing for Windows so any code that works in Windows is a bonus.  We have tried in the past to set up such testing but we don't have the resources right now to do it.

Any help with patches or whatever you can provide to address the problem will get incorporated back into the Trilinos master branch.

Thanks,

- Ross


From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Hongyu Miao
Sent: Thursday, February 10, 2011 7:55 AM
To: trilinos-users at software.sandia.gov
Subject: [Trilinos-Users] comiling error with Teuchos

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_OrdinalTraits.hpp, lines 50 and 89, 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.hpp    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.hpp    50

Error         396        error C2059: syntax error : ')'    ...\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp    50

Error         397        error C3861: 'this_type_is_missing_a_specialization': identifier not found    ...\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp    50

Error         554        error C2825: 'T': must be a class or namespace when followed by '::'    ...\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp    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.hpp    50

Error         556        error C2146: syntax error : missing ')' before identifier 'this_type_is_missing_a_specialization'    ...\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp    50

Error         557        error C2059: syntax error : ')'    ...\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp    50

Error         558        error C3861: 'this_type_is_missing_a_specialization': identifier not found    ...\thirdparty\trilinos\src\packages\teuchos\src\Teuchos_SerializationTraits.hpp    50

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



3.       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/20110211/b32f1d08/attachment-0001.html 


More information about the Trilinos-Users mailing list