Ok, so my team recently put ROBOTC onto a new computer. Everything is fine except one thing, whenever I try to use #include files, it says,
" RobotC could not open #include file “random.c” "
I am confused because I had it working last year on a different computer.
Hmm… can you check that it’s spelled right and it’s saved where you think it’s saved, and that the other file is in the same location. Other then that, I don’t see why it wouldn’t work. Another tip I’ve found is that restarting your computer will magically make things work again for some programs. I hope that helps!
If needed, you can also change where ROBOTC looks for the #include files by navigating to View-> Preferences-> Detailed Preferences-> Directories. You can set paths for Cortex specific #include files, source files, sample programs, templates, etc.
Please note you must be at Expert or Super User menu setting (Window->Menu Level) to view the Directories tab. Also, the default location for include files should be the Drivers folder in the ROBOTC program folder.