[Coin-symphony] How to change the compiler?
Goehring
lutz.goehring at uni-hohenheim.de
Thu Jan 18 10:18:31 EST 2007
Hi Ted,
Thanks!
I tried
>configure CXX=gcc4
>make.
Make runs fine till it
results in the linker error message of the following (many undefined
references):
...
gcc4 -O3 -fomit-frame-pointer -pipe -DNDEBUG -pedantic-errors -Wimplicit
-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-
strings -Wconversion -o .libs/clp ClpMain.o CbcOrClpParam.o
MyEventHandler.o MyMessageHandler.o
unitTest.o ./.libs/libClp.so /afs/uni-
hohenheim.de/project/mas/Users/lgoehrin/SYMPHONY-5.1/Clp/../CoinUtils/src/.libs/libCoinUtils.so -lm -Wl,--rpath -Wl,/afs/uni-hohenheim.de/project/mas/Users/lgoehrin/SYMPHONY-5.1/lib
ClpMain.o(.text+0x20): In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to `std::ios_base::Init::Init()'
ClpMain.o(.text+0xbf): In function `breakdown(char const*, int, double
const*)':
: undefined reference to `operator new[](unsigned int)'
ClpMain.o(.text+0xe5): In function `breakdown(char const*, int, double
const*)':
: undefined reference to `operator new[](unsigned int)'
...
Is there a compiler type or a gnu compiler version which can be
(strongly) recommended?
Cheers,
Lutz
On Wed, 2007-01-17 at 18:16 -0500, Ted Ralphs wrote:
> Hi Lutz,
>
> To specify a different compiler named "cc", just invoke configure as
> follows:
>
> configure CXX=cc
>
> That should do it.
>
> Cheers,
>
> Ted
--
Lutz Göhring
Scientific Assistant
with Prof. Thomas Berger
Professur (i.V.) für Ökonomik der Landnutzung in den Tropen und Subtropen
(Professorship (p.p.) for Land Use Economics in the Tropics and
Subtropics)
Institute for Agricultural Economics and Social Sciences in the Tropics
and Subtropics,
University of Hohenheim, Stuttgart
e-mail: lutz.goehring at uni-hohenheim.de
Tel.: +49-711-459-23615
More information about the Symphony
mailing list