Calculator Community > Calculator C

Tutorial - Setting up C Development Environment for the TI-Nspire

<< < (2/20) > >>

Lionel Debroux:
Some fixes and improvements to the Ndless demo Makefile were performed after Ndless 1.0, in the public part of the SVN repository.

qazz42:
ok I am having a problem, as seen in this video




Heck with it, can someone give the the source code for saying "hello world", that is compatible with the nspire, if I can just make that I can go from there.

bwang:
You should start by trying to compile the Ndless demo with no modifications. If that works, you know your dev environment is working.
Like so:

--- Code: ---cd <ndless root directory>/src/arm/demo
make

--- End code ---
Post any errors you get here.
Alternatively, you can grab skeleton-windows.zip from the first post here, unzip it, cd to the directory it unzipped to, and run 'make'. This has the advantage containing only what you need to compile, which makes it easier to distribute your sources when you release.

fb39ca4:
You should use YAGARTO, it's much more windows-friendly.

apcalc:
qazz, in the video, you are typing "make test".  Try only typing "make", then press enter.  When I type "make main", I get the same error message.  Also, here is the code for a program that will display "Hello World" in a dialog box:


--- Code: ---#include <os.h>
#include "utils.h"

asm(".string \"PRG\"\n");

int main(void) {
showSimpleDialogBox("Hello World!","Hello World");
return 0;
}

--- End code ---

Also, attached is a .tns file of that code compiled.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version