g++: unr. option ‘--eh-frame-hdr' in Ubuntu 11.10

Archives Forums/Linux Discussion/g++: unr. option ‘--eh-frame-hdr' in Ubuntu 11.10

Kittomer(Posted 2012) [#1]
I updated Ubuntu to "Ubuntu 11.10 (oneiric)", and now I get this when trying to build:

"g++: error: unrecognized option ‘--eh-frame-hdr' "

Before I updated, things compiled fine.

I already ran the script that checks dependencies, maybe I need to downgrade something?


Kittomer(Posted 2012) [#2]
Nevermind, I fixed it by installing the v4.4 g++ and changing the g++ symlink to it. I guess that linker option was removed in the g++ v4.6 installed by 11.10? O.o

Last edited 2012


Captain Wicker (crazy hillbilly)(Posted 2012) [#3]
Did you get sound working? How?


Kittomer(Posted 2012) [#4]
What do you mean by sound working? Do you mean in general with Ubuntu 11.10 or in particular with BlitzMax? I wasn't aware there was a problem.

Well, not all sound drivers work 100% on my installation, but OpenAL and FreeAudio work when I run my game. There is two other drivers I can pick, related to FreeAudio, which fail.

Actually scratch that, only OpenAL works.

Last edited 2012


MoriartyL(Posted 2012) [#5]
Hi. I'm less tech-savvy, but I'm having the same problem. How do I do what Kittomer said about the symlink?


dawlane(Posted 2012) [#6]
Open a terminal and type the command
sudo rm -f /usr/bin/g++
sudo ln -s /usr/bin/g++4.4 /usr/bin/g++
to make a system link, but you have to make sure that you have the g++4.4 package installed first.