CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 Installation (https://www.cfd-online.com/Forums/su2-installation/)
-   -   Conftest.cpp C++ compiler error. (https://www.cfd-online.com/Forums/su2-installation/132766-conftest-cpp-c-compiler-error.html)

CrashLaker April 6, 2014 01:21

Conftest.cpp C++ compiler error.
 
Hello. I got an error on conftest.cpp while running configure file.
This is my configure line :
Code:

./configure --prefix="/scratch/su2mpi" --with-Metis-lib="/scratch/metis/lib"
--with-Metis-include="/scratch/metis/include" --with-Metis-version=5
--with-MPI="/scratch/programas/intel/ompi-1.4-intel/bin/mpicxx"

Where is this conftest.cpp?

Code:

configure:3185: checking whether the C++ compiler works
configure:3207: /scratch/programas/intel/ompi-1.4-intel/bin/mpicxx -E  conftest.cpp  >&5
# 1 "conftest.cpp"
 
# 10 "conftest.cpp"
 

int
main ()
{

  ;
  return 0;
}
configure:3211: $? = 0
configure:3249: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "SU^2"
| #define PACKAGE_TARNAME "SU^2"
| #define PACKAGE_VERSION "3.0.0 "eagle""
| #define PACKAGE_STRING "SU^2 3.0.0 "eagle""
| #define PACKAGE_BUGREPORT "susquared-dev@lists.stanford.edu"
| #define PACKAGE_URL "http://su2.stanford.edu"
| #define PACKAGE "SU^2"
| #define VERSION "3.0.0 "eagle""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|  ;
|  return 0;
| }
configure:3254: error: in `/puma_data/SU2':
configure:3256: error: C++ compiler cannot create executables


CrashLaker April 8, 2014 15:31

Got it. I was using -E flag that was echoing garbage.

I got some more error regarding python's version. To solve
that I had to install python above 2.5 and below 3.0 for compatibility
(precisely it was python 2.7).

fpalacios April 13, 2014 15:22

Quote:

Originally Posted by CrashLaker (Post 484748)
Got it. I was using -E flag that was echoing garbage.

I got some more error regarding python's version. To solve
that I had to install python above 2.5 and below 3.0 for compatibility
(precisely it was python 2.7).

Great!

Thanks for using SU2,

Best Regards,
Francisco


All times are GMT -4. The time now is 00:36.