Calculator Community > Calculator C

C++ on Nspire-way through eye of a needle?

(1/2) > >>

Chirlian:
Hi,
I am a unexperienced Nspire user and like to learn it to program (tools and maybe games). After some tries with TI basic and lua, I saw in forums that several programmers recommend to use c++. So I started my 1st try, knowing that i had an introduction course in c programming at 1988 or so... The installation under ms-dos was simple at this days.
Ok, that was my try:
used this tutorial:
https://hackspire.org/index.php/C_and_assembly_development_introduction
-loaded os 4.4.0 and ndless 4.4 and installed both, everything looks ok
-loaded ndless-sdk from github (ndless-master)
-there is the info in the tut to install Cygwin and several other 'dependencies' (18). At other places it's told to install only 2, MinMW and MSYS, but here it's told that they don't work correctly.
So, is this really the way? Now I see why there are not so very much programmers that use c++ for nspire. Such a lot of programs/tools to get a c++ compiler to install?! Really discouraging. It must be a lot of work to get this all together, handle them right and get the whole thing started to compile the 1st hello world. My respect to all them who did it! But isn't there another way?
klaus

shmibs:
windows is very bad at supporting developers, and c and c++ development especially so. other systems have all these toolchain prerequisites installed by default (or, if not, easily available via package manager and official packages, which take five minutes or so to install). windows was not designed to support c and c++ development, however, and all microsoft's attempts at adding it have been an afterthought that's perpetually non-standards-compliant.

so no, there isn't any other way unless you're willing to switch operating systems, basically.

Ranman:
Are you really wanting to do C++? How about trusty old C?

I've never tried using C on the TI-84CE so I cannot speak to it. Although this capability really has me interested in purchasing a TI84CE. ;)

However, C on the TI-89, 89TI, 92+, and V200 is amazingly easy. Simply install GCC4TI or TIGCC on your PC and that's it... you're good to go.

Legimet:
I think if you're using Windows 10, there is an "Ubuntu subsystem" that you can use.

Chirlian:
Installing C++ on Windows seems simple, compared to the Nspire Version. Handling it is not so simple...
But using another OS for using C++ is not what I would tellm user friendly, it means a 2 stage way and handling linux is not a thing that I get used in short time. But thanks for your answer.


--- Quote from: shmibs on February 19, 2017, 04:11:22 pm ---windows is very bad at supporting developers, and c and c++ development especially so. other systems have all these toolchain prerequisites installed by default (or, if not, easily available via package manager and official packages, which take five minutes or so to install). windows was not designed to support c and c++ development, however, and all microsoft's attempts at adding it have been an afterthought that's perpetually non-standards-compliant.

so no, there isn't any other way unless you're willing to switch operating systems, basically.

--- End quote ---


A important aspect for a language is the acceptance of it. Nicest language is not attractive to me when I don't find much support and few ppl who uses it. So I think C++ has some usage for Nspire but C I don't see so often. And programming on the old calculators with bw and non lighted lcd I don't like. Thanks for your hints.


--- Quote from: Ranman on February 19, 2017, 08:33:11 pm ---Are you really wanting to do C++? How about trusty old C?

I've never tried using C on the TI-84CE so I cannot speak to it. Although this capability really has me interested in purchasing a TI84CE. ;)

However, C on the TI-89, 89TI, 92+, and V200 is amazingly easy. Simply install GCC4TI or TIGCC on your PC and that's it... you're good to go.

--- End quote ---


Hm, I think I would prefer to use a linux but a subsystem. But starting with another OS means a lot to learn about its handling just before I can write my Hello World in C++. Means a 2 stage acting. Together with the high need of time to learn C++ it's to much, I think. Its really strange, older calculators can get programmed much better then the nspire but have the awful dark bw displays, the nspire has a wonderful hardware, but got effectively locked by TI to hinder its prgramming. What fools makes such decisions in chief etage?


--- Quote from: Legimet on February 19, 2017, 11:21:16 pm ---I think if you're using Windows 10, there is an "Ubuntu subsystem" that you can use.

--- End quote ---

Edit (Eeems): Merged triple post

Navigation

[0] Message Index

[#] Next page

Go to full version