[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I check if C++ and Fortran compiler works ?

From: Dr. David Kirkby
Subject: How can I check if C++ and Fortran compiler works ?
Date: Sun, 21 Feb 2010 22:53:05 +0000
User-agent: Thunderbird (X11/20090323)

When I run a configure script I see this:

checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes

but when it checks for g++ I see:

checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E

There is no actual test that the C++ compiler works. How can I add one? Currently in I have these bits. (Obviously there is other stuff too, but


#       C/C++/Fortran compilers

# First check for programs we need.

I've noticed a bug report on the Sage mailing list

which looks to be that someone has g++ installed, but it does not actually work. My script checks that there is not a mix of GNU and non-GNU compilers (for Solaris, HP-UX, AIX etc), and somehow my script is broken as it reports he has a mix of GNU and non-GNU compilers. In fact, I think his C++ compiler is probably broken, though I don't know for sure. But I don't have any test for it.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]