Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - simonepsp

Pages: [1]
1
Calculator C / Simple calculator program
« on: April 16, 2013, 02:04:42 pm »
Hi :)

I want to develop a little program that asks me two input numbers (eg. 5 & 10). And do some calcs on it...

Eg. User enter two numbers (eg. a=5, b=10), program give user a numeric output (a + b = 15)

I know how do it in C:
Quote

    #include <stdio.h>
    int a,b,c;
    main ()

        {
        scanf("%d",&a);
        scanf("%d",&b);
        c=a+b;
        printf("%d\n",c);
        }



But I don't know how do it in C (with Tinspire libraries). Anyone could give me a code example? I'm a C noob :P

Thank you

2
Calculator C / [RELEASE][WIN] Nspire's Little Magic compiler [LUA/C]
« on: March 14, 2013, 04:26:32 pm »
Hello everyone :)

I've just solved all my compiling problems so I decided to develop a new simple program that helps windows users to build C programs for ti Nspire:)
It still require a windows pc with sdk environment setted up correctly.

That's the first version, so it may contain bug :) Suggestions are also accepted ;)
The next version will contain a compiling error log & other features :P

ATTENTION: "this program is released 'as is' and there are no working guarantees. I'm still developing it :)

________________________________________________________________________________________________________________
USE
________________________________________________________________________________________________________________

Just click "compile" button, select folder where files reside and leave the program to compile files itself.
If everything works correctly you'll find a .tns file inside your program folder :)

________________________________________________________________________________________________________________
SCREENSHOT
________________________________________________________________________________________________________________










Select folder



Result



________________________________________________________________________________________________________________
DOWNLOAD
________________________________________________________________________________________________________________

http://www.mediafire.com/?czb2o1s0fkodfov [v 1.0.1]

________________________________________________________________________________________________________________
CHANGELOG
________________________________________________________________________________________________________________

Quote
Changelog:
- 1.0.1 - March 16, 2013
   - Environment variables installer completely rewritten!
- 1.0 - March 15, 2013
   - New menu
   - LUA language compatibility
   - Environment variables installer (Still in Beta, I'm still developing it)
   - Install button. Push this button to download a "mini-pack" with all programs/libraries that you need :)

- 0.1 - First release -  March 14, 2013



________________________________________________________________________________________________________________
DONATE
________________________________________________________________________________________________________________

If you like this program please consider to make a donation :)

Bitcoin Address: 138sK3nZ3yJDooYcFMXUHciawwSu9YUQ2

Thank you :)

3
Calculator C / [problem] TI NSPIRE C compile error
« on: March 13, 2013, 11:19:42 am »
Hi,

I have some problems with Ndless SDK and Windows 8 :(

I set up environment for C development (http://ourl.ca/6330), I installed MSys, Yagarto, Cygwin, 7zip but I have some problems and I don't know how solve :(

That's what appear when I type "make" in src folder using Msys :\
Quote
simonepsp@TERA /c/ndless/src
$ make
make all in tools...
make[1]: Entering directory `/c/ndless/src/tools'
make all in build...
make[2]: Entering directory `/c/ndless/src/tools/build'
cp nspire-gcc nspire-ld nspire-ld-bflt nspire-as nspire-tools Makefile.tpl ../../Ndless-SDK/ndless/bin
chmod +x ../../Ndless-SDK/ndless/bin/nspire-*
make[2]: Leaving directory `/c/ndless/src/tools/build'
make all in MakeTNO...
make[2]: Entering directory `/c/ndless/src/tools/MakeTNO'
make[2]: Leaving directory `/c/ndless/src/tools/MakeTNO'
make[1]: Leaving directory `/c/ndless/src/tools'
make all in libndls...
make[1]: Entering directory `/c/ndless/src/libndls'
nspire-gcc -Os -nostdlib -c _scrsize.c
_scrsize.c:22:16: error: os.h: No such file or directory
_scrsize.c: In function '_scrsize':
_scrsize.c:26: error: 'SCREEN_WIDTH' undeclared (first use in this function)
_scrsize.c:26: error: (Each undeclared identifier is reported only once
_scrsize.c:26: error: for each function it appears in.)
_scrsize.c:26: error: 'SCREEN_HEIGHT' undeclared (first use in this function)
make[1]: *** [_scrsize.o] Error 1
make[1]: Leaving directory `/c/ndless/src/libndls'
make: *** [subdirs] Error 1


What Can I do? :(

If can help:
Windows environments variables path list:
Quote
C:\Users\simonepsp>echo %path%
C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\ndless\sdk\bin;C:\Users\simonepsp\Docum
ents\AMD APP\bin\x86_64;C:\Users\simonepsp\Documents\AMD APP\bin\x86;C:\Program
Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;F:\Program
 Files (x86)\CollabNet;F:\Program Files (x86)\Embarcadero\RAD Studio\10.0\bin;C:
\Users\Public\Documents\RAD Studio\10.0\Bpl;F:\Program Files (x86)\Embarcadero\R
AD Studio\10.0\bin64;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\
Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Wi
ndows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft ASP.NET\
ASP.NET Web Pages\v1.0\;F:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:
\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\
Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Int
el(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Man
agement Engine Components\IPT;C:\Program Files\Microsoft\Web Platform Installer\
;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program
 Files (x86)\Prime Sense\NITE\Bin;C:\MinGW\bin;C:\msys\1.0\bin;C:\Program Files\
OpenNI\Bin64;C:\Program Files (x86)\Calibre2\;C:\Program Files (x86)\ATI Technol
ogies\ATI.ACE\Core-Static;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\b
inn\;C:\Program Files\7-Zip;C:\Program Files (x86)\yagarto\bin;c:\program files
(x86)\gnuarm\bin;C:\Program Files\TortoiseSVN\bin

Thank you

Pages: [1]