home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16775 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1021 b 

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!mcdchg!polaris!burman
  2. From: burman@polaris.UUCP (Surendra Burman)
  3. Newsgroups: comp.lang.c++
  4. Subject: Linking Error)
  5. Message-ID: <1439@polaris.UUCP>
  6. Date: 23 Nov 92 00:31:44 GMT
  7. Organization: Vista Technologies, Inc. Schaumburg, IL 60173 USA
  8. Lines: 28
  9.  
  10.  
  11.  
  12.  What is the simplest way to debug a linking error?
  13.  I am getting a strange error of undefined symbols
  14.  when I am trying to link some C++ files.
  15.  
  16.  e.g.
  17.     ld: Undefined symbol
  18.        _XtMalloc
  19.            _XtFree
  20.        _XtRealloc
  21.  
  22. There are about 25 files and I did find these symbols in 
  23. one of the files.I get this error when I am trying to call
  24. a constructor function. If I comment out the constructor
  25. function, the program links fine. I tried to check the order
  26. in which I am linking the files, but it did not help? I am
  27. new to C++.
  28.  
  29. Any pointers in this direction will be highly appreciated.
  30.  
  31. Thanks in advance.
  32.  
  33. Please email me any suggestions.
  34.  
  35. -- Burman
  36. Email: burman@vistatech.com 
  37.  
  38.