Clan x86

Technical (Development, Security, etc.) => Unix / Linux Discussion => Topic started by: rabbit on July 05, 2008, 05:31:53 pm

Title: GCC can't find stuff!
Post by: rabbit 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).
Title: Re: GCC can't find stuff!
Post by: iago on July 05, 2008, 05:42:46 pm
Try using -I (capital 'i') to specify the folder that they're in.
Title: Re: GCC can't find stuff!
Post by: rabbit 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).
Title: Re: GCC can't find stuff!
Post by: iago 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.
Title: Re: GCC can't find stuff!
Post by: rabbit 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.