Linking error easy c

I added the default code as a user function for the control portion and it gives me a linking error can someone tell me how to fix it without removing the user control

Can you please post your code? I’m afraid to say that I can’t help unless I see the code.

2 Likes

main
1#include “Main.h”
2
3 void main (void)
4{
5 Initialize( ) ;
6 Autonomous ( 0 ) ;
7 Operatorcontrol ( 0 ) ;
8}

initialize

1#include"Main.h"
2
3 void initialize (void)
4 {
5 Wait ( 1000)
6 // Do Not place infinite loops inside of your Initialize Function.
7 // If your Initialize Function never terminates. your program
8 // will never progress progress to autonomous and Operator Control.
9 // See Help for more information about this function.
10 }

Autonomous
1#include “Main.h”
2
3 void Autonomous ( unsigned long ul time )
4{
5 Set Motor ( 10 , -1270 ) ; // right drive
6 Set Motor ( 1 , 127 ) ; // left drive
7 Wait ( 1450 ) ; // Time driving forward
8 Set Motor ( 10 , 0 ) ; // stop
9 Set Motor ( 1 , 0 ) ; // stop
10 Wait ( 2000 ) ;
11 Set Motor ( 1 , -127 ) ; left reverse
12 Wait ( 500 ) ; // stop
13 Set Motor ( 10 , 127 ) ;
14 Wait ( 450 ) ;
15 }

ran out of time the rest I can post tomarrow