Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • T Trilinos
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 936
    • Issues 936
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • James Willenbring
  • Trilinos
  • Issues
  • #1419

Closed
Open
Created Jun 14, 2017 by James Willenbring@jmwilleMaintainer

#include <Epetra_Version.h> causes error

Created by: jwuttke

This piece of code (taken from Epetra tutorial #2)

#include <Epetra_config.h>
#ifdef HAVE_MPI
#  include <mpi.h>
#  include <Epetra_MpiComm.h>
#else
#  include <Epetra_SerialComm.h>
#endif // HAVE_MPI
#include <Epetra_Map.h>
#include <Epetra_Vector.h>
#include <Epetra_Version.h>

causes the following error:

$ mpic++ -I/usr/include/trilinos -ltrilinos_epetra epetra02-2.cpp 
In file included from epetra02-2.cpp:10:0:
/usr/include/trilinos/Epetra_Version.h: In function ‘std::__cxx11::string Epetra_Version()’:
/usr/include/trilinos/Epetra_Version.h:49:34: error: expected ‘)’ before numeric constant
 # define TRILINOS_VERSION_STRING 12S
                                  ^
/usr/include/trilinos/Epetra_Version.h:57:32: note: in expansion of macro ‘TRILINOS_VERSION_STRING’
   return("Epetra in Trilinos " TRILINOS_VERSION_STRING);

Versions (from Debian/stretch):

  • mpic++ from libopenmpi-dev 2.0.2-2
  • libtrilinos-epetra-dev 12.10.1-3
Assignee
Assign to
Time tracking