home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!nntp1.radiomail.net!fernwood!pure!rpeck
- From: rpeck@pure.com (Ray Peck)
- Subject: Re: ld: Undefined symbol Problem.
- Message-ID: <1992Nov17.234439.23829@pure.com>
- Organization: Pure Software, Los Altos, CA
- References: <1992Nov10.211544.16332@teknetix.com>
- Date: Tue, 17 Nov 1992 23:44:39 GMT
- Lines: 67
-
- In article <1992Nov10.211544.16332@teknetix.com> hiren@teknetix.com writes:
- >
- >Hi:
- >
- >I am trying to "make" a program and foll. are the errors that I get:
- >
- >ld: Undefined symbol
- > _sin
- > _cos
- > _pow
- > _floor
- > _get_wmShellWidgetClass
- > _get_applicationShellWidgetClass
- > _dlopen
- > _dlclose
- > _dlsym
- >*** Error code 2
- >make: Fatal error: Command failed for target `xdbx'
-
-
- sin, cos, pow, and floor are in libm. You'll need a "-lm" at the end
- of your link line.
-
- dlopen, dlclose, and dlsym are in libdl. You'll need a "-ldl".
-
-
- _get_applicationShellWidgetClass and _get_wmShellWidgetClass are in
- libXmu. You'll need a "-lXmu".
-
-
- How did I find these? With nm.
-
- pure% cd /usr/openwin/lib
- pure% foreach i (lib*)
- ? echo $i
- ? nm $i | grep _get_applicationShellWidgetClass
- ? end
- libX.sa.1.0
- libX.so.1.0
- libX11.sa
- libX11.sa.4.3
- libX11.so
- libX11.so.4.3
- libXaw.so
- libXaw.so.4.0
- libXmu.sa
- 00000000 T _get_applicationShellWidgetClass
- libXmu.sa.4.0
- 00000000 T _get_applicationShellWidgetClass
- libXmu.so
- libXmu.so.4.0
- libXol.so
- libXol.so.3.1
- libXt.sa
- libXt.sa.4.1
- libXt.so
- libXt.so.4.1
- libce.so.0.0
- libcps.so
- libcps.so.1.0
- libdeskset.sa.0.1
- libdeskset.so.0.1
- pure%
- --
- Ray Peck rpeck@pure.com
- Pure Software 415-903-5100
-
-