I'm showing files installed from two versions of libstdc++, those versions being 4.4.4 and 4.4.7. (installed using yum/RHN):
Code:
[user@user ~]$ ls /usr/include/c++
4.4.4 4.4.7
And, their contents:
Code:
[user@user ~]$ ls /usr/include/c++/4.4.7
algorithm complex cxxabi.h limits stdexcept
array complex.h debug list streambuf
backward condition_variable deque locale string
bits csetjmp exception map system_error
bitset csignal exception_defines.h memory tgmath.h
c++0x_warning.h cstdarg exception_ptr.h mutex thread
cassert cstdatomic ext new tr1
ccomplex cstdbool fenv.h numeric tr1_impl
cctype cstddef forward_list ostream tuple
cerrno cstdint fstream parallel typeinfo
cfenv cstdio functional queue type_traits
cfloat cstdlib initializer_list random unordered_map
chrono cstring iomanip ratio unordered_set
cinttypes ctgmath ios regex utility
ciso646 ctime iosfwd set valarray
climits cwchar iostream sstream vector
clocale cwctype istream stack x86_64-redhat-linux
cmath cxxabi-forced.h iterator stdatomic.h
[user@user ~]$ ls /usr/include/c++/4.4.4
algorithm complex cxxabi.h limits stdexcept
array complex.h debug list streambuf
backward condition_variable deque locale string
bits csetjmp exception map system_error
bitset csignal exception_defines.h memory tgmath.h
c++0x_warning.h cstdarg exception_ptr.h mutex thread
cassert cstdatomic ext new tr1
ccomplex cstdbool fenv.h numeric tr1_impl
cctype cstddef forward_list ostream tuple
cerrno cstdint fstream parallel typeinfo
cfenv cstdio functional queue type_traits
cfloat cstdlib initializer_list random unordered_map
chrono cstring iomanip ratio unordered_set
cinttypes ctgmath ios regex utility
ciso646 ctime iosfwd set valarray
climits cwchar iostream sstream vector
clocale cwctype istream stack x86_64-redhat-linux
cmath cxxabi-forced.h iterator stdatomic.h
gcc --version: gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)
Problem is, when compiling a program in Eclipse, Eclipse shows that gcc searches the 4.4.4 folder (rather than 4.4.7) for headers and includes.
How can I verify gcc is actually using the 4.4.7 folder rather than the 4.4.4 folder? And, how can I remove the 4.4.4. from gcc's search path?