home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16968 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  1.4 KB

  1. Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!gumby!wmichgw!873clifton
  2. From: 873clifton@gw.wmich.edu
  3. Newsgroups: comp.lang.c
  4. Subject: Re: How to use another library?
  5. Message-ID: <1992Nov21.182730.6511@gw.wmich.edu>
  6. Date: 21 Nov 92 18:27:29 EST
  7. References: <92323.155036SATCC@CUNYVM.BITNET>
  8. Organization: Western Michigan University
  9. Lines: 27
  10.  
  11. In article <92323.155036SATCC@CUNYVM.BITNET>, <SATCC@CUNYVM.BITNET> writes:
  12. > I am new to C and am using Turbo C++ 3.0.  Recently I got a library of
  13. > functions (*.LIB) and have placed it in my library directory (i.e. C:\TC\LIB).
  14. > However whenever I compile my program using these functions, I get an error
  15. > message saying that the function couldn't be found.  Is there something I am
  16. > doing wrong??  I would like to run the program from the IDE for easier
  17. > debugging.  I have looked into the manual but to no avail.
  18. > Please reply me directly,
  19. > Thanks in advance,
  20. > Sameer.
  21.  
  22. You must pass the name of any non standard library to the compiler. Under Unix
  23. versions of C the switch is `-l' I beleive. Also not under unix the convention
  24. of calling library files as libname.a, Thus to link with the `name' library
  25. your command line might look something like:
  26.  
  27.     > cc -o name -lname name.c
  28.  
  29. Of course your Turbo C compiler may differ, but as I remember from using
  30. Borland once, not that differnt.
  31.  
  32. /D
  33. --
  34. Douglas Clifton [99clifto@lab.cc.wmich.edu]
  35.