by copperclad » Sun Jan 10, 2010 5:43 pm
by copperclad
Sun Jan 10, 2010 5:43 pm
hi
i am running Borland C++ v4.51 and compiling for a DOS.exe
the program compiles fine but when i go to build i am getting some errors
here is the program i am trying , it compiles fine with 0 errors
#include <stdio>
#include <roboard>
int main(void) {
if (rcservo_Initialize(RCSERVO_USECHANNEL0)) {
printf("Initialized. Channel 0\n");
rcservo_Close();
} else {
printf("Initialization failed\n");
}
return 0;
}
and here are the errors i get when i try to build for an exe file
Linker Error:Undefined symbol_rcservo_close in module SERVO1.CPP
Linker Error:Undefined symbol_rcservo_Initialize in module SERVO1.CPP
not sure what i am doing wrong , any help would be great , thanks
i am guessing i am getting these errors because i have had trouble installing the library
i have downloaded the RoBoIO folder with the example and MAKE.DJ file in it , and when i go to a command line and type "make -f Make.DJ"
i get an error tell me that there needs to be a colon on lines 43 and 61 and errors out , without making the library , i have the files libRBIO.a and RoBOIO.lib in the C:\BC45\LIB folder , but i am not sure if they are installed correctly
.
hi
i am running Borland C++ v4.51 and compiling for a DOS.exe
the program compiles fine but when i go to build i am getting some errors
here is the program i am trying , it compiles fine with 0 errors
#include <stdio>
#include <roboard>
int main(void) {
if (rcservo_Initialize(RCSERVO_USECHANNEL0)) {
printf("Initialized. Channel 0\n");
rcservo_Close();
} else {
printf("Initialization failed\n");
}
return 0;
}
and here are the errors i get when i try to build for an exe file
Linker Error:Undefined symbol_rcservo_close in module SERVO1.CPP
Linker Error:Undefined symbol_rcservo_Initialize in module SERVO1.CPP
not sure what i am doing wrong , any help would be great , thanks
i am guessing i am getting these errors because i have had trouble installing the library
i have downloaded the RoBoIO folder with the example and MAKE.DJ file in it , and when i go to a command line and type "make -f Make.DJ"
i get an error tell me that there needs to be a colon on lines 43 and 61 and errors out , without making the library , i have the files libRBIO.a and RoBOIO.lib in the C:\BC45\LIB folder , but i am not sure if they are installed correctly
.