This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: trying to compile


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]