home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!watserv2.uwaterloo.ca!mach1!kfisher3
- From: kfisher3@mach1.wlu.ca (kevin fisher U)
- Subject: Re: G++:where is the c++ library? I couldn't link c++ program.
- X-Newsreader: TIN [version 1.1 PL6]
- References: <1992Dec28.134302.12378@news.ysu.edu>
- Message-ID: <C026Gw.Cqq@mach1.wlu.ca>
- Organization: Wilfrid Laurier University
- Date: Wed, 30 Dec 1992 06:10:07 GMT
- Lines: 20
-
- Weijin Mai (ah214@yfn.ysu.edu) wrote:
- :
- : I compiled the C++ program and produced an object file. The problem is
- : I couldn't link it with the appropiate c++ library. My program uses cout and
- : cin and the linker doesn't find the library for these two functions. I used
- : the -llibrary switch and tried out all the library in usr/lib without success.
- : Why can't g++/gcc determine the library it needs from header file?[D[
- : What is the library for iostream.h?
-
- I had this problem, and someone kindly enlightened me, so I will enlighten
- you--compile using the -static option. All your woes will end.
- The samaritan that helped me said it was because gcc can only use the static
- libraries or something.
-
-
- --
- --------------------------------------------------------------------------------
- Kevin Fisher ><> | "Thank you. You can't believe everything you
- kfisher3@mach1.wlu.ca | see and hear, can you?" - Hendrix, 'EXP'
- ________________________________________________________________________________
-