home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16695 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.6 KB  |  78 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!nntp1.radiomail.net!fernwood!pure!rpeck
  3. From: rpeck@pure.com (Ray Peck)
  4. Subject: Re: ld: Undefined symbol Problem.
  5. Message-ID: <1992Nov17.234439.23829@pure.com>
  6. Organization: Pure Software, Los Altos, CA
  7. References: <1992Nov10.211544.16332@teknetix.com>
  8. Date: Tue, 17 Nov 1992 23:44:39 GMT
  9. Lines: 67
  10.  
  11. In article <1992Nov10.211544.16332@teknetix.com> hiren@teknetix.com writes:
  12. >Hi:
  13. >I am trying to "make" a program and foll. are the errors that I get:
  14. >ld: Undefined symbol
  15. >   _sin
  16. >   _cos
  17. >   _pow
  18. >   _floor
  19. >   _get_wmShellWidgetClass
  20. >   _get_applicationShellWidgetClass
  21. >   _dlopen
  22. >   _dlclose
  23. >   _dlsym
  24. >*** Error code 2
  25. >make: Fatal error: Command failed for target `xdbx'
  26.  
  27.  
  28. sin, cos, pow, and floor are in libm.  You'll need a "-lm" at the end
  29. of your link line.
  30.  
  31. dlopen, dlclose, and dlsym are in libdl.  You'll need a "-ldl".
  32.  
  33.  
  34. _get_applicationShellWidgetClass and _get_wmShellWidgetClass are in
  35. libXmu.  You'll need a "-lXmu".
  36.  
  37.  
  38. How did I find these?  With nm.
  39.  
  40. pure% cd /usr/openwin/lib
  41. pure% foreach i (lib*)
  42. ? echo $i
  43. ? nm $i | grep _get_applicationShellWidgetClass
  44. ? end
  45. libX.sa.1.0
  46. libX.so.1.0
  47. libX11.sa
  48. libX11.sa.4.3
  49. libX11.so
  50. libX11.so.4.3
  51. libXaw.so
  52. libXaw.so.4.0
  53. libXmu.sa
  54. 00000000 T _get_applicationShellWidgetClass
  55. libXmu.sa.4.0
  56. 00000000 T _get_applicationShellWidgetClass
  57. libXmu.so
  58. libXmu.so.4.0
  59. libXol.so
  60. libXol.so.3.1
  61. libXt.sa
  62. libXt.sa.4.1
  63. libXt.so
  64. libXt.so.4.1
  65. libce.so.0.0
  66. libcps.so
  67. libcps.so.1.0
  68. libdeskset.sa.0.1
  69. libdeskset.so.0.1
  70. pure% 
  71. -- 
  72. Ray Peck                        rpeck@pure.com
  73. Pure Software                        415-903-5100
  74.  
  75.