Setting the environment variables CC and CXX overrides autoconf's preferred list of c and c++ compilers, respectively. You can also pass the variables into configure, so to use the stable g++ as the c compiler and the development version of g++ as the c++ compiler, on my linux machine, I'd type:
rorik@chabuku:~/nco: ./configure CC=g++ CXX=g++-3.2
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
....
rorik
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Rorick or Charlie,
How do I compile the nco project with g++
( I want to do this so I can pick up possible type errors which slip though gcc)
regards Henry
Setting the environment variables CC and CXX overrides autoconf's preferred list of c and c++ compilers, respectively. You can also pass the variables into configure, so to use the stable g++ as the c compiler and the development version of g++ as the c++ compiler, on my linux machine, I'd type:
rorik@chabuku:~/nco: ./configure CC=g++ CXX=g++-3.2
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
....
rorik