I am working with my son to use CodeBlocks running on the BrickPi/CINCH to compile various _test.c files such as :
github.com/DexterInd/BrickPi_C/blob/master/Sensor_Examples/LEGO%20-%20Motor%20Test.c
I have three inter-related questions: 1) why use sudo gcc is the first place? This seems to expose various important risks that should usually be avoided.
-
If sudo gcc is needed, then how can this be done within codeblocks IDE? Yes, I could run codeblocks IDE as sudo, but again, this seems injudicious.
-
Lastly, a “lazy” question … I assume that are ways to implement -l and -L compilation options somewhere in CodeBlocks. I haven’t looked yet.
Thanks,
Rob