Re: -x option for gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, 20 Oct 2006, Brian Dessent wrote:

> Anitha Boyapati wrote:
> 
> >  gcc -x c++ test.cc
> > 
> >  Now the compiler shouts at me saying there are some undefined references.
> 
> The real question is why you would want to do this.  Supplying "-x c++"
> does not have the same effect as invoking g++, which knows all the
> necessary libraries and options to pass on to the subprocesses.  All -x
> does is set the type of language by which the file will be interpreted,
> but there is more to it.  You will run into all kinds of problems by not
  
   Actually I would like to know this option so this would probably give me 
   insight to what libraries are required for compiling a small helo world.
 
   I fail to understand the use of x option  if all it does is to 
   interpret the file by means of given language.Can you please shed some 
   more light on it.
     

-- 
Regards,
Anitha B,
Sankhya Technologies Private Limited.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux