| Could not find include file on include paths [message #885345] |
Tue, 12 June 2012 17:05  |
john smith Messages: 2 Registered: June 2012 |
Junior Member |
|
|
I am using Eclipse to edit an existing project on my Mac. First, I'm not sure why but I had to tell Eclipse where to find the stl c++ include files. After I did this it was able to resolve the string, vector, etc classes but there were a few that it still couldn't find such as function and shared_ptr.
I discovered that these are new to C++11 and downloaded gcc-4.8 (precompiled from HPC for Mac OS X) and added the include path ("/usr/local/include/c++/4.8.0") and removed the old one.
Now what I can't figure out is why Eclipse can find the main include files (e.g. string and vector) but some of the includes within the include it cannot find. For example, inside <memory> is an include for <bits/shared_ptr.h> which is in the directory /usr/local/include/c++/4.8.0/bits but it says it could not find the file. Some of the files it can find though such as "bits/stl_vector.h" but it still has an error for vector saying "Symbol 'vector' could not be resolved."
Any clue on what I'm doing wrong?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09006 seconds