Unix Technical Forum

linking error

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 06:12 PM
Shashank
 
Posts: n/a
Default linking error

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 06:12 PM
Robert Pouliot
 
Posts: n/a
Default Re: linking error

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 06:12 PM
Shashank
 
Posts: n/a
Default Re: linking error

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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 06:12 PM
Mike Stroyan
 
Posts: n/a
Default Re: linking error

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:51 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com