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