This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem In compiling C++ codes
- To: aaboulhosn at entpm2 dot prod dot fedex dot com, gcc-help at gcc dot gnu dot org
- Subject: Re: Problem In compiling C++ codes
- From: sherry <sherry at zeroknowledge dot com>
- Date: Thu, 22 Feb 2001 13:56:24 -0500
- References: <OFD8570FFF.DDD367A3-ON862569FB.0066800D@prod.fedex.com>
aaboulhosn@entpm2.prod.fedex.com wrote:
> I appreciate your response.
>
> 1) I Tried to put the whole path in my C++ program like this:
> #include <path directory for my header file/iostream.h>
>
> and tried to compile, it does not work.
> is there any other way, to include the path name ?
Check the PATH environment variable:
echo $PATH should give you that , you can modify it also.
If you are using bash like me and type env at console then you can
see all variables and path is there.
else check the man pages for your shell
>
>
> 2) If I have an : a.out execuatble file
> when I type: a.out It does not find the link library
this problem can be related to the path also.
>
>
> 3) what is the extension for the source file , in C++ and how to compile
> it ?
man g++ will help you :)
>
>
> I know for my C program, example:
>
> filename.c
> To compile : gcc filename.c
>
> Thank you
welcome