This is a discussion on linking error within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Hi ALL, hen I try to link my programme I get the following error: /usr/ccs/bin/ld: Unsatisfied symbols: XDisplayOfScreen (first ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi ALL, hen I try to link my programme I get the following error: /usr/ccs/bin/ld: Unsatisfied symbols: XDisplayOfScreen (first referenced in /usr/lib/libXm.a(ColorObj.o)) (code) XDrawImageString16 (first referenced in /usr/lib/libXm.a(XmString.o)) (code) XmbDrawString (first referenced in /usr/lib/libXm.a(XmString.o)) (code) XmbTextExtents (first referenced in /usr/lib/libXm.a(Text.o)) (code) XSetICValues (first referenced in /usr/lib/libXm.a(XmIm.o)) (code) ------------- ------------- ------------- and the list isvery long. I have libXm.a included while linking. WHy this error and how to resolve this. regards, Shashank |
| |||
| In article <40F13415.1ECC343E@icmgworld.com>, Shashank wrote: > Hi ALL, > > hen I try to link my programme I get the following error: > > /usr/ccs/bin/ld: Unsatisfied symbols: > XDisplayOfScreen (first referenced in /usr/lib/libXm.a(ColorObj.o)) > (code) This one an probably many others are referenced in libX11. It may be that you link without the -lX11 or that you did put -lX11 before -lXm in the link order. What is the link order of the libraries? -- Politician: One who shakes your hand before elections and your confidence after. http://www.krynos.org/ - ICQ UIN: 2295979 |
| |||
| We checked up sequence of files is same as mentioned by you.Its in the correct sequence. We still get the same error. regards, Robert Pouliot wrote: > In article <40F13415.1ECC343E@icmgworld.com>, Shashank wrote: > > Hi ALL, > > > > hen I try to link my programme I get the following error: > > > > /usr/ccs/bin/ld: Unsatisfied symbols: > > XDisplayOfScreen (first referenced in /usr/lib/libXm.a(ColorObj.o)) > > (code) > This one an probably many others are referenced in libX11. > It may be that you link without the -lX11 or that you did put -lX11 before > -lXm in the link order. > What is the link order of the libraries? > > -- > Politician: One who shakes your hand before elections and your confidence after. > http://www.krynos.org/ - ICQ UIN: 2295979 |
| ||||
| Shashank <shashank@icmgworld.com> wrote: |We checked up sequence of files is same as mentioned by you.Its in the correct |sequence. |We still get the same error. Please cut and paste the actual link line so we can see it. Don't just say 'it's OK'. A correct link sequence would be- cc -o myprog myprog.c -lXm -lXt -lX11 -- Mike Stroyan, mike.stroyan@hp.com |