General Question
In C what does the error "undefined refrence to 'WinMain@16' mean?
int goforth(int gfmm){
int tick=gfmm/0.13;
int tick1=tick+5;
int tick2=tick-5;
int tick3=tick+10;
clear_motor_position_counter(0);
clear_motor_position_counter(3);
mav(0,500);
mav(3,500);
while (get_motor_position_counter(0)<tick1 || get_motor_position_counter(0)>tick2){
if (get_motor_position_counter(0)>tick2){
mav(0,-100);
mav(3,-100);
}
if (get_motor_position_counter(0)>tick3 && get_motor_position_counter(0)>tick1){
mav(0,100);
mav(3,100);
}
}
printf(“i went %d”+gfmm);
mav(0,0);
mav(3,0);
beep();
}
int retreat(int fmm){
int tick=fmm/0.13;
int tick1=tick+5;
int tick2=tick-5;
int tick3=tick+10;
clear_motor_position_counter(0);
clear_motor_position_counter(3);
mav(0,-500);
mav(3,-500);
while(get_motor_position_counter(0)<tick1 || get_motor_position_counter(0)>tick2){
if (get_motor_position_counter(0)<tick2){
mav(0,100);
mav(3,100);
}
if (get_motor_position_counter(0)<tick3 && get_motor_position_counter(0)<tick1){
mav(0,-100);
mav(3,-100);
}
}
printf(“i went %d”+fmm);
mav(0,0);
mav(3,0);
beep();
}
int turncw(cw){
int tick=cw*3.15;
int tick1=tick+5;
int tick2=tick-5;
int tick3=tick-10;
mav(0,300);
clear_motor_position_counter(0);
while(get_motor_position_counter(0)>tick1 || get_motor_position_counter(0)<tick2){
if (get_motor_position_counter(0)>tick1){
mav(0,-100);
}
if (get_motor_position_counter(0)<tick2 && get_motor_position_counter(0)>tick3){
mav(0,100);
}
}
printf(“i went %d”+cw);
mav(0,0);
mav(3,0);
beep();
}
int turnccw(ccw){
int tick=ccw*3.15;
tick=tick*-1;
int tick1=tick-5;
int tick2=tick+5;
int tick3=tick+10;
mav(3,300);
clear_motor_position_counter(3);
while(get_motor_position_counter(3)<tick1 || get_motor_position_counter(3)>tick2){
if (get_motor_position_counter(3)<tick1){
mav(0,100);
}
if (get_motor_position_counter(3)>tick2 && get_motor_position_counter(3)<tick3){
mav(3,-100);
}
}
printf(“i went %d”+ccw);
mav(0,0);
mav(3,0);
beep();
}
this is my functions library for a robot i am programming in C
when i compile it using KISS 2.2.1 i get that error message
help?
4 Answers
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.