From: kevin fisher U (kfisher3@mach1.wlu.ca)
Date: 12/30/92


From: kfisher3@mach1.wlu.ca (kevin fisher U)
Subject: Re: G++:where is the c++ library? I couldn't link c++ program.
Date: 30 Dec 1992 06:10:07 GMT

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'
________________________________________________________________________________