News:

So the widespread use of emojis these days kinda makes forum smileys pointless, yeah?

Main Menu

GCC can't find stuff!

Started by rabbit, July 05, 2008, 05:31:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rabbit

I'm quite angry at GCC right now.  It can't find map.h or string.h (and probably others).

iago

Try using -I (capital 'i') to specify the folder that they're in.

rabbit

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).

iago

Quote from: 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).
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.

rabbit

/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.