Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've installed g++-4.5 via apt, and there exists a /usr/bin/g++-4.5. However, when I try and run g++-4.5, I get this error message:

/usr/bin/g++-4.5: not found (hardened-c++ could not find target)

In fact, the file /usr/bin/g++-4.5 seems to be a perl script. I understand that Ubuntu uses hardening wrappers around gcc, but I don't know how to actually compile something using g++ in this state.

How can I fix this?

share|improve this question

1 Answer 1

This is just a poor error message, which indicates that g++-4.5 is not installed. I needed to install g++-4.5 Install g++-4.5 (which I thought I had, but I must have installed gcc-4.5 instead).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.