gcc seems okay but g++ not able to get path to compile

gagan1 gagan2172@yahoo.com
Thu Sep 16 21:04:00 GMT 2010

              Is that some different way in which g++ needs path information
for the source cpp & header file to get compiled.

I am trying to compile a code with GCC. Since it is c++ code. It appears g++
is automatically get invoked
So while the gcc is okay but g++ compliains about no file or directory error

I copy the file and put in same location from where I am running the

This seems to work but now all the system header files that are listed in
that cpp file is missing as per g++!!!

I don't think it is goo idea to copy all system or no system header files in
same folder to get g++ work. Thier should be some way to let g++ know the

At the moment in my standard makefile I am using flag -I to include header

any suggestion /thoughts are apprictiated

View this message in context: http://old.nabble.com/gcc-seems-okay-but-g%2B%2B-not-able-to-get-path-to-compile-tp29732952p29732952.html
Sent from the gcc - Help mailing list archive at Nabble.com.

More information about the Gcc-help mailing list