g++ 4.7
Hi,
when trying to compile my programs with g++ 4.7, with exporting
CXX to g++-4.7 (my programs use configure.in), it seems that it still
uses g++ 4.6 and the matching libstdc++ 4.6.
Here an information from gdb:
Reading symbols from /usr/lib/x86_64-linux-gnu/libstdc++.so.6...(no debugging symbols found)...done.
Registering libstdc++-v6 pretty-printer for /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ...
Loaded symbols for /usr/lib/x86_64-linux-gnu/libstdc++.so.6
And here after a segmentation in gdb too:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe2742700 (LWP 443)]
_M_lower_bound (__y=<optimized out>, __k=..., __x=0x407, this=<optimized out>)
at /usr/include/c++/4.6/bits/stl_tree.h:1096
As far as I know, setting CXX to the correct value before launching configure
should be enough to choose the compiler version (and thus the required
libraries). So did I miss something ?
Regards.
Reply to: