[Trilinos-Users] compiling error with Teuchos

Hongyu Miao jackymiao at gmail.com
Thu Feb 10 12:49:05 MST 2011


I'm using CMake 2.8.3, will that cause the problem?

Also, I used the Visual Studio 10 generator instead of NMake makefiles;

I specified the lapack library in CMake built from CLAPACK;

MPICH2 v1.3.1 is what I'm using.

 

Thanks,

Hongyu

 

From: David Cole [mailto:david.cole at kitware.com] 
Sent: Thursday, February 10, 2011 2:16 PM
To: Hongyu Miao
Cc: trilinos-users at software.sandia.gov
Subject: Re: [Trilinos-Users] compiling error with Teuchos

 

I have not tried this with Trilinos 10.6.2 (I am using Trilinos from the
head of the git repository today), but I am able to build Teuchos without
errors using CMake 2.8.4-rc2 and Visual Studio 2010. I'm using the NMake
Makefiles generator. I'm also doing a serial build, not an openmp build.

What version of CMake are you using?
What generator are you using (NMake Makefiles or Visual Studio 10)?
Did you build clapack first?
What MPI library are you using?



On Thu, Feb 10, 2011 at 12:56 PM, Hongyu Miao <jackymiao at gmail.com> wrote:

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

 


_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
http://software.sandia.gov/mailman/listinfo/trilinos-users

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20110210/eb247db8/attachment-0001.html 


More information about the Trilinos-Users mailing list