Author Topic: GCC can't find stuff!  (Read 4173 times)

0 Members and 1 Guest are viewing this topic.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
GCC can't find stuff!
« on: July 05, 2008, 05:31:53 pm »
I'm quite angry at GCC right now.  It can't find map.h or string.h (and probably others).

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: GCC can't find stuff!
« Reply #1 on: July 05, 2008, 05:42:46 pm »
Try using -I (capital 'i') to specify the folder that they're in.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: GCC can't find stuff!
« Reply #2 on: July 08, 2008, 10:01:41 am »
Well, I found a lot of them with slocate, but I'm not sure which ones are correct, though I'm guessing it's the ones in /usr/local/include (IIRC).

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: GCC can't find stuff!
« Reply #3 on: July 08, 2008, 10:07:02 am »
Well, I found a lot of them with slocate, but I'm not sure which ones are correct, though I'm guessing it's the ones in /usr/local/include (IIRC).
If they came with the system, they should be in /usr/include.

If you installed them later, then it's more likely /usr/local/include.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: GCC can't find stuff!
« Reply #4 on: July 08, 2008, 05:42:59 pm »
/usr/include/c++/4.2/backward/multimap.h
/usr/include/c++/4.2/backward/map.h
/usr/include/c++/4.2/backward/hash_map.h
/usr/include/c++/4.2/debug/multimap.h
/usr/include/c++/4.2/debug/hash_multimap.h
/usr/include/c++/4.2/debug/map.h
/usr/include/c++/4.2/debug/hash_map.h
/usr/include/c++/4.2/bits/stl_map.h
/usr/include/c++/4.2/bits/stl_multimap.h

There are also loads more in the kernel source tree.