News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Trying to open include file. Not found

Started by add_dir, September 03, 2008, 07:45:07 PM

Previous topic - Next topic

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

helpse

Quote from: add_dir on September 03, 2008, 07:45:07 PM
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.

i have the same problem! And i couldnt get it fixed by adding the paths to Environment settings -> Search Directories! And i mean, its about a single file, not a project, so i cant access to the Project Build Options. I asked a friend, and for he, its working normally. Why it isnt working for me?

polymorpher

Quote from: helpse on September 19, 2010, 11:26:33 AM
Quote from: add_dir on September 03, 2008, 07:45:07 PM
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.

i have the same problem! And i couldnt get it fixed by adding the paths to Environment settings -> Search Directories! And i mean, its about a single file, not a project, so i cant access to the Project Build Options. I asked a friend, and for he, its working normally. Why it isnt working for me?
I had the same problem. Fixed by saving the workspace and project.