Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

Problem Solved building roboard lib in DJGPP

Based on DMP's Vortex processor / SoC this board is a full computer capable of running a standard Windows and Linux installation on the backpack of your robot.
4 postsPage 1 of 1
4 postsPage 1 of 1

Problem Solved building roboard lib in DJGPP

Post by copperclad » Tue Jan 12, 2010 4:43 pm

Post by copperclad
Tue Jan 12, 2010 4:43 pm

Hi
i have DJGPP downloaded and installed in my RoBoard , i can compile and build standard C files fine , i would like to install the roboard lib and include files so i can compile and build some Roboard programs

i have RoBoIO-src-v1.5b-gcc downloaded and need to know how to set it up before i run the make file make.dj , i have tried a number of ways and have only gotten errors so far

where should i have the libsrc directory when i type make.dj

should i copy the libsrc files into C:\DJGPP\LIB first or should i move the whole directory into the C:\DJGPP\LIB folder , and then type MAKE.DJ

i am guessing i can't just move LIBRBIO.A into the C:\DJGPP\LIB folder

i spent some time trying different things and reading up on DJGPP website , with no luck , when i try to link DJGPP can't find the library , i have tried giving it the libRBIO.a path in the options menu , again without any luck

not sure what i am doing wrong or even if i am on the right track , any help would be great , thanks again :D

.
Hi
i have DJGPP downloaded and installed in my RoBoard , i can compile and build standard C files fine , i would like to install the roboard lib and include files so i can compile and build some Roboard programs

i have RoBoIO-src-v1.5b-gcc downloaded and need to know how to set it up before i run the make file make.dj , i have tried a number of ways and have only gotten errors so far

where should i have the libsrc directory when i type make.dj

should i copy the libsrc files into C:\DJGPP\LIB first or should i move the whole directory into the C:\DJGPP\LIB folder , and then type MAKE.DJ

i am guessing i can't just move LIBRBIO.A into the C:\DJGPP\LIB folder

i spent some time trying different things and reading up on DJGPP website , with no luck , when i try to link DJGPP can't find the library , i have tried giving it the libRBIO.a path in the options menu , again without any luck

not sure what i am doing wrong or even if i am on the right track , any help would be great , thanks again :D

.
Last edited by copperclad on Wed Jan 13, 2010 1:11 pm, edited 1 time in total.
copperclad
Robot Builder
Robot Builder
Posts: 11
Joined: Tue Dec 08, 2009 2:06 pm

Post by copperclad » Wed Jan 13, 2010 1:45 am

Post by copperclad
Wed Jan 13, 2010 1:45 am

Hi
i have been working on it tonight and have an update

i had gotten the file to compile fine but it was bombing out when i would try to link it , and the errors i was getting were that DJGPP could not find the libRBIO.a

so since i had the object file servo.o , i tried to link it on the command line with
GCC -0 servo.exe servo.o libRBIO.a

and the errors i got seem to indicate that it can find the lib file but that there is a problem

libRBIO.a(Rcservo.o):Rcservo.cpp:(.eh_frame+011):undefined reference to '___gxx_personality_V0'
libRBIO.a(common.o):common.cpp:(.eh_frame+011):undefined reference to '___gxx_personality_V0'
libRBIO.a(IO.o):IO.cpp:(.eh_frame+011):undefined reference to '___gxx_personality_V0'
libRBIO.a(PWMDX.o):PWMDX.cpp:(.eh_frame+011):undefined reference to '___gxx_personality_V0'
libRBIO.a(PWM.o):PWM.cpp:(.eh_frame+011):undefined reference to '___gxx_personality_V0'


and it errors out , without creating the EXE file , i am wondering if DJGPP has updated their software ( i have VER v2gnu/gpp442b.zip ), or that i have still not been able to link the library correctly , any help would be great , thanks again

. :D
Hi
i have been working on it tonight and have an update

i had gotten the file to compile fine but it was bombing out when i would try to link it , and the errors i was getting were that DJGPP could not find the libRBIO.a

so since i had the object file servo.o , i tried to link it on the command line with
GCC -0 servo.exe servo.o libRBIO.a

and the errors i got seem to indicate that it can find the lib file but that there is a problem

libRBIO.a(Rcservo.o):Rcservo.cpp:(.eh_frame+011):undefined reference to '___gxx_personality_V0'
libRBIO.a(common.o):common.cpp:(.eh_frame+011):undefined reference to '___gxx_personality_V0'
libRBIO.a(IO.o):IO.cpp:(.eh_frame+011):undefined reference to '___gxx_personality_V0'
libRBIO.a(PWMDX.o):PWMDX.cpp:(.eh_frame+011):undefined reference to '___gxx_personality_V0'
libRBIO.a(PWM.o):PWM.cpp:(.eh_frame+011):undefined reference to '___gxx_personality_V0'


and it errors out , without creating the EXE file , i am wondering if DJGPP has updated their software ( i have VER v2gnu/gpp442b.zip ), or that i have still not been able to link the library correctly , any help would be great , thanks again

. :D
copperclad
Robot Builder
Robot Builder
Posts: 11
Joined: Tue Dec 08, 2009 2:06 pm

Post by roboard » Wed Jan 13, 2010 6:59 am

Post by roboard
Wed Jan 13, 2010 6:59 am

copperclad wrote:so since i had the object file servo.o , i tried to link it on the command line with
GCC -0 servo.exe servo.o libRBIO.a

and the errors i got seem to indicate that it can find the lib file but that there is a problem


Please try

gcc -o servo.exe servo.o -L. -lRBIO -lstdcxx
copperclad wrote:so since i had the object file servo.o , i tried to link it on the command line with
GCC -0 servo.exe servo.o libRBIO.a

and the errors i got seem to indicate that it can find the lib file but that there is a problem


Please try

gcc -o servo.exe servo.o -L. -lRBIO -lstdcxx
roboard
Savvy Roboteer
Savvy Roboteer
Posts: 302
Joined: Fri Jul 03, 2009 4:44 am

Post by copperclad » Wed Jan 13, 2010 1:04 pm

Post by copperclad
Wed Jan 13, 2010 1:04 pm

Please try

gcc -o servo.exe servo.o -L. -lRBIO -lstdcxx




success! :D

i had to move libstdcxx.a into the lib directory , and then call it with

gcc -o servo.exe servo.o -L. -lRBIO -lstd~1

because of the 8 character file name limit

thank you for all your help and patience , i got it to work off the command line and in RHIDE also , thanks again :D

.
Please try

gcc -o servo.exe servo.o -L. -lRBIO -lstdcxx




success! :D

i had to move libstdcxx.a into the lib directory , and then call it with

gcc -o servo.exe servo.o -L. -lRBIO -lstd~1

because of the 8 character file name limit

thank you for all your help and patience , i got it to work off the command line and in RHIDE also , thanks again :D

.
copperclad
Robot Builder
Robot Builder
Posts: 11
Joined: Tue Dec 08, 2009 2:06 pm


4 postsPage 1 of 1
4 postsPage 1 of 1