Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

./configure with a specified version of g++

Tags:

How to tell to a 'configure' file to compile with a specified version of g++ ?

Thanks.

like image 260
Oodini Avatar asked Apr 12 '10 09:04

Oodini


People also ask

What is G ++ vs GCC?

g++ is used to compile C++ program. gcc is used to compile C program.


1 Answers

In a bash shell you can do something like this:

./configure CC=gcc-2.95 

There will be similar techniques for other shells but I couldn't help you with the specifics. If your project is C++ the variable you need to define is CXX.

like image 114
Dan Olson Avatar answered Oct 21 '22 08:10

Dan Olson