Re: changing default gcc include path

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

 



On Thu, Dec 01, 2005 at 08:54:58AM +0000, Chris Jones wrote:
> Hi,
> 
> I'm running FC4 and trying to setup an environment to compile applications 
> that require gcc 3.2.3
> 
> I've installed the various compat rpms, which have provided the gcc 3.2.3 
> compiler. This seems fine, however I am having problems with the standard 
> include paths, as I get this error
> 
> In file included from /usr/include/c++/4.0.2/string:52, 
> from /data/lhcbSoft/lcg/external/AIDA/3.2.1/share/src/cpp/AIDA/IAnalysisFactory.h:15, 
> from /data/lhcbSoft/lcg/external/AIDA/3.2.1/share/src/cpp/AIDA/AIDA.h:4,
>                  from /home/jonesc/cmtuser/GaudiPI/v0r3/dict/AFCreator.h:4:
> /usr/include/c++/4.0.2/bits/basic_string.h: In member function `bool
>    std::basic_string<_CharT, _Traits, _Alloc>::_M_disjunct(const _CharT*) 
> const
>    ':
> etc. etc.
> 
> So, I am actually including header files from  /usr/include/c++/4.0.2/, 
> whereas for this application, I need to use  /usr/include/c++/3.2.3/. 
> 
> I have a script which I run in a terminal to setup various things for this 
> case. Is there something I can put in this script to alter the default such 
> path to find files from  /usr/include/c++/3.2.3 ?

If you use the g++32 compiler driver instead of g++, /usr/include/c++/3.2.*
include paths should be used automatically.

	Jakub


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux