That the instructions in the mspgcc patches include c++ is due to 20 years of habit: that's how I usually build gcc. However, much of C++ in mspgcc is completely unvalidated, including exception handling and virtual methods. Use it at your own risk.
To figure out why you can't build it, look at the messages configure printed out and see if it says why it won't build c++: there may be a missing package. I haven't reviewed the wiki's build-from-source instructions, but c++ builds fine with the original patches I maintain on Fedora 15.
You might also get better response by subscribing to and mailing mspgcc-users as described on the wiki front page; I have no idea how many folks read these forums.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all!
I am trying to figure out how to add c++ support for latest mspgcc. I followed instructions at https://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=Install:fromsource
I'm on Ubuntu 11.04. I got c compiler working perfectly.
Tried to add c++ in configuration phase:
../gcc-4.5.3/configure -target=msp430 -enable-languages=c,c++ -program-prefix="msp430-" -with-mpfr-include=/usr/local/include -with-mpfr-lib=/usr/local/lib -with-gmp-include=/usr/local/include -with-gmp-lib=/usr/local/lib -with-mpc-include=/usr/local/include -with-mpc-lib=/usr/local/lib
and I get the following error:
configure: error:
The following requested languages could not be built: c++
Supported languages are: c,lto
Would anyone have an idea how I could get c++ support?
Any help appreciated!
That the instructions in the mspgcc patches include c++ is due to 20 years of habit: that's how I usually build gcc. However, much of C++ in mspgcc is completely unvalidated, including exception handling and virtual methods. Use it at your own risk.
To figure out why you can't build it, look at the messages configure printed out and see if it says why it won't build c++: there may be a missing package. I haven't reviewed the wiki's build-from-source instructions, but c++ builds fine with the original patches I maintain on Fedora 15.
You might also get better response by subscribing to and mailing mspgcc-users as described on the wiki front page; I have no idea how many folks read these forums.