Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: njaddison on August 13, 2012, 11:31:08 pm

Title: C++ on the Nspire?
Post by: njaddison on August 13, 2012, 11:31:08 pm
so, I was wondering if C++ would be possible on the nspire through ndless.
I know that ndless is for c, but would it be possible for an ndless update that allows C++, or some kind of ndless C++ library?

I am learning C++, but ndless is for c. So even after I finish C++ tutorials, then I'll have to take c, which will be like learning the same thing over again, just with a few differences.

So, back to the question at the beginning, would it be possible?
Title: Re: C++ on the Nspire?
Post by: compu on August 14, 2012, 08:29:48 am
tangrs has a tutorial here: http://blog.tangrs.id.au/?p=712
Title: Re: C++ on the Nspire?
Post by: ExtendeD on August 14, 2012, 08:58:19 am
Getting C++ on the TI-Nspire currently requires several additional setup steps and has specific limitations. Moreover C++ is not originally design for embedded programming (but it doesn't mean it can't be used or is not recommanded).
If you want to start developping for the TI-Nspire as a beginner, C will be much easier.

You don't really need to learn C: since C++ is a superset of C, you actually already know it. Just pick up a guide which compares C and C++ to find what you should not use when developing in C. There are plenty of those available.
Title: Re: C++ on the Nspire?
Post by: Le solutionneur on August 14, 2012, 09:54:35 am
I don't understand why isn't it possible: g++ doesn't support ARM stuff but gcc does ?
Is seems to have no sense for me.
Title: Re: C++ on the Nspire?
Post by: ExtendeD on August 14, 2012, 02:16:02 pm
tangrs's blog describes and the additional setup and missing stub functions.
Title: Re: C++ on the Nspire?
Post by: njaddison on August 15, 2012, 12:22:53 pm
tangrs' tutorial talks about checking out newlib for arm architecture from CVS. What CVS does he mean? Surely he can't mean the Pharmacy/drugstore CVS!
Title: Re: C++ on the Nspire?
Post by: Lionel Debroux on August 15, 2012, 12:35:21 pm
https://en.wikipedia.org/wiki/Concurrent_versions_system . An old thing that, in its time (1986), represented an improvement over previous programs, but has severe defects, easy to encounter in normal usage. Pretty much any SCM out there is superior to CVS, but some people insist on using it.