Gerald Pfeifer <[email protected]> writes:

> On Thu, 1 Oct 2009, Anonymous wrote:
>>>   While here:
>>>   
>>>     o Use GCC 4.2+ to fix build on 6.x
>> I'm not sure using `+' is a good idea. I can compile it using g++42
>> and g++43 but it fails on linking when using g++44[1] and g++45.
>
> Looking at the failure mode you report, I wonder whether
>
>   CFLAGS+=        -Wl,-rpath=${PREFIX}/lib/gcc44
>   LDFLAGS+=       -Wl,-rpath=${PREFIX}/lib/gcc44
>
> added to the Makefile works for you.  (This is not the proposed solution, 
> it is a test, assuming you are using g++44, otherwise change the path to 
> have gcc45 as its last component.)


No, it doesn't make any difference.

/usr/local/lib/gcc44/libssp.so.0: warning: warning: this program uses gets(), 
which is unsafe.
game.o: In function `(anonymous 
namespace)::game_controller::game_controller(int, char**)':
game.cpp:(.text+0x6aad): undefined reference to 
`std::ctype<char>::_M_widen_init() const'
actions.o: In function `attack::attack(map_location const&, map_location 
const&, int, int, bool)':
actions.cpp:(.text+0x21c41): undefined reference to 
`std::ctype<char>::_M_widen_init() const'
addon_management.o: In function `archive_addon(std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > const&, config&)':
addon_management.cpp:(.text+0x635c): undefined reference to 
`std::ctype<char>::_M_widen_init() const'
ai/actions.o: In function `ai::action_result::~action_result()':
actions.cpp:(.text+0xdc9): undefined reference to 
`std::ctype<char>::_M_widen_init() const'
ai/actions.o: In function `ai::action_result::~action_result()':
actions.cpp:(.text+0x11e4): undefined reference to 
`std::ctype<char>::_M_widen_init() const'
ai/actions.o:actions.cpp:(.text+0x1477): more undefined references to 
`std::ctype<char>::_M_widen_init() const' follow
collect2: ld returned 1 exit status

>
> Gerald
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to