User forums > Help
Trying to open include file. Not found
add_dir:
Hello. In the editor window, where my main.cpp is opened, I right-click on "#include <iostream>" and choose "open #include file: 'iostream'". As I understand, this must cause opening of iostream header in new tab. But instead this I get the next warning message: "not found: iostream". The same thing with other included headers. Also when I try to find declaration of funtcions, I use in my program, I get the same "not found" warning. Still the program compiles and runs without errors. What am I doing or understanding wrong? Thanks.
rcoll:
Under Project->Build Options, make sure the compiler "Search Directories" has the path to where those files are located.
It compiles OK because the compiler has a default set of search directories, and thus can find the proper files. But C::B doen't know about them, so you have to tell it.
Ringo
add_dir:
That's it! Thank you.
The path was in "search directories" but only for the Debug, not for whole project. When I added the path to whole project, it became all right.
phr3ak:
Why didn't work the "find declaration" on printf?
cichmen:
Hi,
is there needed to have the path under Project->Build Options or is it possible to put this path under Global Compiler Settings?
I think it worked when it was under Global Compiler Settings, but now (SVN 5678) it does not. However it works when the path is under Project->Build Options.
Cichmen
Navigation
[0] Message Index
[#] Next page
Go to full version