This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: trying to compile
- To: "Grosu, Yair" <Yair_Grosu at icomverse dot com>
- Subject: Re: trying to compile
- From: Claudio Bley <bley at mail dot cs dot uni-magdeburg dot de>
- Date: Fri, 12 Oct 2001 09:54:15 +0200
- Cc: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- References: <7D4344E32B34D511A6500002A560C602962809@IL-TLV-MAIL4>
>>>>> "YGR" == Grosu, Yair <Yair_Grosu@icomverse.com> writes:
YGR> Hi, I am new with GCC and Linux. I am trying to compile and link a
YGR> program and do not manage to link it since I do not know how to
YGR> specify for it the location of the directory where the iostream
YGR> (cout/cin) library is located.
YGR> Can you please help me?
YGR> Thanks
YGR> YGR
Just use the g++ command to compile/link your program - it will take care
to include the stdc++ library which contains cout, cin etc. Otherwise,
read the manual of gcc and the linker on how to specify library and include
directories.
Claudio