You need to compile the program gcc -o gyro_accelerometer_tutorial02 -lm gyro_accelerometer_tutorial02.csdl-config --cflagssdl-config --libs-lSDL_image -lSDL_gfx
Nice! Got it working.. must have had some typos in the command line.. Is it possible to have the PI to auto run this program on boot with the raspberrian or something #noobie
The best way is to modify the .bashrc file? But will it work? The pi would boot as usual, and the inclinometer will start running and could be exited with ctrl+c?