Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Momentics ignores user added includes at build time: (3 Items)
   
Momentics ignores user added includes at build time  
Steps to reproduce:
Create a Project Explorer > New > QNX Project, select  QNX Executable. Observe the buit-in includes.
Select the project in Project Explorer > Properties > C/C++ General > Paths and Symbols > Includes .> GNU C > Add > add 
a directory containing abc.h and add an include line in the cpp file.
Project > Build Project
CDT Build console reports
qcc ....
src/QNXExecutable.cpp:... fatal error: abc.h: No such file or directory.

Please help.

Re: Momentics ignores user added includes at build time  
If you Have QNX Project includes are managed by Properties-> QNX C/C++ Project -> Compiler tab
The includes in the other places are purely for internal index and has no impact on compilation
(technically this preference page should not be even visible I think its a bug)
Re: Momentics ignores user added includes at build time  
For QNX Executable projects, you need to add the include path in the
Makefile. There are a couple of lines commented out there that shows you
how. For xapmle:

INCLUDES += -I/path/to/abcheader

On 2017-05-02, 5:38 PM, "Sorin Lazareanu" <community-noreply@qnx.com>
wrote:

>Steps to reproduce:
>Create a Project Explorer > New > QNX Project, select  QNX Executable.
>Observe the buit-in includes.
>Select the project in Project Explorer > Properties > C/C++ General >
>Paths and Symbols > Includes .> GNU C > Add > add a directory containing
>abc.h and add an include line in the cpp file.
>Project > Build Project
>CDT Build console reports
>qcc ....
>src/QNXExecutable.cpp:... fatal error: abc.h: No such file or directory.
>
>Please help.
>
>
>
>
>
>_______________________________________________
>
>General
>http://community.qnx.com/sf/go/post117695
>To cancel your subscription to this discussion, please e-mail
>general-ide-unsubscribe@community.qnx.com