[SOLVED] can someone PLEASE tell me how to use g++ 4.5 ?

[SOLVED] can someone PLEASE tell me how to use g++ 4.5 ?

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
yanom
Posts: 323
Joined: 10 Jul 2009, 23:34

[SOLVED] can someone PLEASE tell me how to use g++ 4.5 ?

Post by yanom »

So I'm trying to compile from source and I'm getting all sorts of nasty errors. I've also heard that g++ 4.6 (the default on my system) causes Sync errors (which I'm getting on the Debian binary of Spring, presumably because it was built with 4.6) so I need to compile from source with g++ 4.5. jandd linked me to this, on controlling CMake:

http://cmake.org/Wiki/CMake_Useful_Vari ... _and_Tools

but I don't understand how to set those variables :(

Can someone tell me how to build Spring from source with g++-4.5?


EDIT: I gave up on the CMake stuff and just deleted /usr/bin/gcc and /usr/bin/c++ and then linked gcc4.5 and g++4.5, respectively, to /usr/bin/gcc and /usr/bin/c++
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: [SOLVED] can someone PLEASE tell me how to use g++ 4.5 ?

Post by abma »

next time use this:

(rm CMakeCache.txt)
cmake . -DCMAKE_CXX_COMPILER=/usr/bin/g++-4.5 -DCMAKE_C_COMPILER=/usr/bin/gcc-4.5
Post Reply

Return to “Linux”