home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20304 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.0 KB  |  40 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mcsun!sun4nl!utrcu1!infnews!infnews!hoekstra
  3. From: hoekstra@cs.utwente.nl (Aarnoud Hoekstra)
  4. Subject: HELP WANTED WITH GCC !
  5. Message-ID: <1992Dec14.091445@cs.utwente.nl>
  6. Keywords: gcc,linux
  7. Sender: usenet@cs.utwente.nl
  8. Nntp-Posting-Host: hydra
  9. Organization: University of Twente, Dept. of Computer Science
  10. Date: Mon, 14 Dec 1992 08:14:45 GMT
  11. Lines: 27
  12.  
  13. Dear Linux/gcc users,
  14.  
  15. I have a problem when using gcc. When I compile my c-program using
  16.  
  17.   gcc -g code.c -lm
  18.  
  19. in order to get debug information (BTW the -lm switch is used to be able
  20. to use the math.h library properly), the linker responds with
  21.  
  22.   ld: No such file or directory for libm.a
  23.  
  24. If I compile without debug information like
  25.  
  26.   gcc code.c -lm
  27.  
  28. everything works perfectly. Must I set some additional paths or is the
  29. file that is requested (whatever file that may be) by ld not available.
  30.  
  31. Who can help me ?
  32.  
  33. ---
  34. Dept. of Computer Science (SETI)
  35. University of Twente    
  36. P.O. Box 217
  37. 7500 AE Enschede
  38. The Netherlands
  39. (hoekstra@cs.utwente.nl)
  40.