Beginner Tutorial - Part 1: Setting up the compiler
From NXT++
This is a tutorial for beginners that are just starting out with NXT++. NXT++ should not be that hard to learn since it is just like coding a normal C++ program. If you do happen to have problems though, feel free to post on the forums. Now, on to the quick'n'dirty tutorial.
Windows
Once you have the NXT++ libraries are built, you only need to tell your compiler where the NXT++ /include and /bin directories are. You also need to tell it that you want to link with NXT++.lib or NXT++d.lib - whichever one you need. Here Is an in-depth tutorial for the VC++ beginners.
Linux
Linux is only compatible with versions 0.5 and below! It was taken out in NXT++ 0.6!
Anyone who knows anything about Linux should find compiling NXT++ easy if everything is set up correctly. Here is the basic syntafor compiling a .cpp file that uses NXT++:
gcc -Wall -lstdc++ -lusb -I[NXT++ /include directory] [.cpp file] -lnxtpp -o [project name]
Replace the things in brackets with the appropriate text.
Note: to run NXT++ programs when not logged in as root, you will have to type:
chgrp -R [your username] /dev/bus/usb/003/
