I made a code that has a bunch of simple but effective robot task functions and also some constant variables that I will be using throughout the entire code. I use #include to include the functions and variables from that code into one of my autonomous codes. Then the compiler says that I have a duplicate of task main. I thought to solve the problem that I just delete the task main in the robot task functions and constant variables code. When I did that, the compiler says missing task main or if I’m using a header file. Is it possible for me to use a header file instead? Is that what I should already be doing? Thank you in advance.
So the technique ROBOTC uses means that you have to compile from the “main” file. Remove main from the other files and remember to always click compile from the main file. The other files will not compile on there own, you just have to accept that.