Author Topic: C++ on the Nspire?  (Read 3798 times)

0 Members and 1 Guest are viewing this topic.

Offline njaddison

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 176
  • Rating: +24/-27
    • View Profile
C++ on the Nspire?
« 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?
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/5f42ec78e054645d.png" alt="NerdTests.com says I'm a Highly Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>


Offline compu

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 275
  • Rating: +63/-3
    • View Profile
Re: C++ on the Nspire?
« Reply #1 on: August 14, 2012, 08:29:48 am »
tangrs has a tutorial here: http://blog.tangrs.id.au/?p=712

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: C++ on the Nspire?
« Reply #2 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.
Ndless.me with the finest TI-Nspire programs

Offline Le solutionneur

  • LV3 Member (Next: 100)
  • ***
  • Posts: 70
  • Rating: +14/-10
    • View Profile
Re: C++ on the Nspire?
« Reply #3 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.
"Commit to the Lord whatever you do and your plans will succeed." - Proverbs 16:3
"Whatever you do, work at it with all your heart, as working for the Lord, not for men. " - Colossians 3:23

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: C++ on the Nspire?
« Reply #4 on: August 14, 2012, 02:16:02 pm »
tangrs's blog describes and the additional setup and missing stub functions.
Ndless.me with the finest TI-Nspire programs

Offline njaddison

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 176
  • Rating: +24/-27
    • View Profile
Re: C++ on the Nspire?
« Reply #5 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!
<a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/5f42ec78e054645d.png" alt="NerdTests.com says I'm a Highly Dorky Nerd God.  Click here to take the Nerd Test, get geeky images and jokes, and talk to others on the nerd forum!">
</a>


Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: C++ on the Nspire?
« Reply #6 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.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.