vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I am using gcc 3.3.2 and binutils 2.14 on HP 11.11. I can get code to compile but I am having problems with the linker. Are we supposed to be using the HP linker (ld) or should be using a gnu type linker ? The following is the last few lines of my link line and the unresolved symbols it complains about: -lDtWidget -lDtSvc -ltt -lstdc++ -lglib -lMrm -lXm -lXt -lX11 -lcl -lisamstub -lndbm -lc -lC -lPW -lm -lX11 -lndbm -lcurses -lMrm -lXm -lXt -lX11 -lm -ldld -ltt -lc -lC -lcl -lPW -ltt ld: Unsatisfied symbols: _Unwind_SjLj_Register (code) __divdi3 (code) _Unwind_SjLj_Resume (code) _Unwind_SjLj_Unregister (code) $global$ (data) __moddi3 (code) ld: Unsatisfied symbols: $global$ (data) |
| ||||
| In article <7a722574.0407150808.7a160a34@posting.google.com >, Alfred P. Bartholomai <fred.bartholomai@acsatl.com> wrote: >I am using gcc 3.3.2 and binutils 2.14 on HP 11.11. > >I can get code to compile but I am having problems with the linker. >Are we supposed >to be using the HP linker (ld) or should >be using a gnu type linker ? > >The following is the last few lines of my >link line and the unresolved symbols it complains about: > >-lDtWidget -lDtSvc -ltt -lstdc++ -lglib -lMrm -lXm -lXt >-lX11 -lcl -lisamstub -lndbm -lc -lC -lPW -lm -lX11 -lndbm -lcurses >-lMrm -lXm -lXt -lX11 -lm -ldld -ltt -lc -lC -lcl -lPW -ltt >ld: Unsatisfied symbols: >_Unwind_SjLj_Register (code) >__divdi3 (code) >_Unwind_SjLj_Resume (code) >_Unwind_SjLj_Unregister (code) >$global$ (data) >__moddi3 (code) >ld: Unsatisfied symbols: >$global$ (data) You should be fine using the HP linker but if you call ld directly to link you need to include libgcc on the link line. -lgcc_s or -lgcc depending on shared vs. archive and you might need a -L to find libgcc as well. A simpler solution would be to use gcc to link instead of calling ld directly. Then gcc will call ld with the needed -lgcc and -L options. Steve Ellcey sje <AT> cup . hp . com |