CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2 > SU2 Installation

Compile Error on Fedora, g++, no CGNS, no Metis

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2013, 21:10
Default Compile Error on Fedora, g++, no CGNS, no Metis
  #1
New Member
 
Josh
Join Date: Sep 2009
Posts: 14
Rep Power: 17
jstults is on a distinguished road
Here's what I did:
Code:
git clone https://github.com/su2code/SU2
Then
Code:
./configure
make
No errors reported on the configure, but I get this error on the compile:

Code:
g++ -DPACKAGE_NAME=\"SU\^2\" -DPACKAGE_TARNAME=\"SU\^2\" -DPACKAGE_VERSION=\"2.0.6\" -DPACKAGE_STRING=\"SU\^2\ 2.0.6\" -DPACKAGE_BUGREPORT=\"susquared-dev@lists.stanford.edu\" -DPACKAGE_URL=\"http://su2.stanford.edu\" -DPACKAGE=\"SU\^2\" -DVERSION=\"2.0.6\" -I.    -DNO_CGNS -DNO_METIS -DNO_TECIO -DNO_MPI -MT ../src/libSU2_a-linear_solvers_structure.o -MD -MP -MF ../src/.deps/libSU2_a-linear_solvers_structure.Tpo -c -o ../src/libSU2_a-linear_solvers_structure.o `test -f '../src/linear_solvers_structure.cpp' || echo './'`../src/linear_solvers_structure.cpp
../src/linear_solvers_structure.cpp: In member function ‘long unsigned int CSysSolve::ConjugateGradient(const CSysVector&, CSysVector&, CMatrixVectorProduct&, CPreconditioner&, double, long unsigned int, bool)’:
../src/linear_solvers_structure.cpp:155:11: error: ‘exit’ was not declared in this scope
../src/linear_solvers_structure.cpp: In member function ‘long unsigned int CSysSolve::FGMRES(const CSysVector&, CSysVector&, CMatrixVectorProduct&, CPreconditioner&, double, long unsigned int, bool)’:
../src/linear_solvers_structure.cpp:260:11: error: ‘exit’ was not declared in this scope
../src/linear_solvers_structure.cpp:271:11: error: ‘exit’ was not declared in this scope
../src/linear_solvers_structure.cpp: In member function ‘long unsigned int CSysSolve::BCGSTAB(const CSysVector&, CSysVector&, CMatrixVectorProduct&, CPreconditioner&, double, long unsigned int, bool)’:
../src/linear_solvers_structure.cpp:392:11: error: ‘exit’ was not declared in this scope
make[1]: *** [../src/libSU2_a-linear_solvers_structure.o] Error 1
I successfully compiled / ran version 2.0.2 from the tarball on this system before you guys went to git (thanks for doing that btw).
jstults is offline   Reply With Quote

Old   August 28, 2013, 00:02
Default
  #2
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
Thanks for letting us know, and your nice words.

As you know, exit() is a very typical function in C++. But, as far I see, in gcc 4.3 the #include <cstdlib> should be in the code (before we were using #include <iostream>).

I have just updated the git repository. Could you please try again with the new code.

Cheers,
Francisco

Quote:
Originally Posted by jstults View Post
Here's what I did:
Code:
git clone https://github.com/su2code/SU2
Then
Code:
./configure
make
No errors reported on the configure, but I get this error on the compile:

Code:
g++ -DPACKAGE_NAME=\"SU\^2\" -DPACKAGE_TARNAME=\"SU\^2\" -DPACKAGE_VERSION=\"2.0.6\" -DPACKAGE_STRING=\"SU\^2\ 2.0.6\" -DPACKAGE_BUGREPORT=\"susquared-dev@lists.stanford.edu\" -DPACKAGE_URL=\"http://su2.stanford.edu\" -DPACKAGE=\"SU\^2\" -DVERSION=\"2.0.6\" -I.    -DNO_CGNS -DNO_METIS -DNO_TECIO -DNO_MPI -MT ../src/libSU2_a-linear_solvers_structure.o -MD -MP -MF ../src/.deps/libSU2_a-linear_solvers_structure.Tpo -c -o ../src/libSU2_a-linear_solvers_structure.o `test -f '../src/linear_solvers_structure.cpp' || echo './'`../src/linear_solvers_structure.cpp
../src/linear_solvers_structure.cpp: In member function ‘long unsigned int CSysSolve::ConjugateGradient(const CSysVector&, CSysVector&, CMatrixVectorProduct&, CPreconditioner&, double, long unsigned int, bool)’:
../src/linear_solvers_structure.cpp:155:11: error: ‘exit’ was not declared in this scope
../src/linear_solvers_structure.cpp: In member function ‘long unsigned int CSysSolve::FGMRES(const CSysVector&, CSysVector&, CMatrixVectorProduct&, CPreconditioner&, double, long unsigned int, bool)’:
../src/linear_solvers_structure.cpp:260:11: error: ‘exit’ was not declared in this scope
../src/linear_solvers_structure.cpp:271:11: error: ‘exit’ was not declared in this scope
../src/linear_solvers_structure.cpp: In member function ‘long unsigned int CSysSolve::BCGSTAB(const CSysVector&, CSysVector&, CMatrixVectorProduct&, CPreconditioner&, double, long unsigned int, bool)’:
../src/linear_solvers_structure.cpp:392:11: error: ‘exit’ was not declared in this scope
make[1]: *** [../src/libSU2_a-linear_solvers_structure.o] Error 1
I successfully compiled / ran version 2.0.2 from the tarball on this system before you guys went to git (thanks for doing that btw).
fpalacios is offline   Reply With Quote

Old   August 28, 2013, 20:31
Default
  #3
New Member
 
Josh
Join Date: Sep 2009
Posts: 14
Rep Power: 17
jstults is on a distinguished road
Works a treat; thanks!
jstults is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling with MPI, METIS, CGNS on iMac monkeytron SU2 Installation 5 June 5, 2013 08:06
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 21:51
Compile OpenFOAM on Fedora 8 asaha OpenFOAM Installation 1 August 25, 2008 11:41
How to conert cgns in to node array for Metis? John Main CFD Forum 15 November 14, 2006 08:33
How to conevrt cgns file in node array for metis? John CFX 0 November 12, 2006 22:54


All times are GMT -4. The time now is 01:30.