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: Problem In compiling C++ codes


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


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