include header <*.h>  "*.h"  style brackets

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

include header <*.h>  "*.h"  style brackets

1,541 Views
francois_boucha
Contributor III

Hello,

I try to find any rules when employing these 2 bracket style.   My problem is that CW7.1 can't find any MQX header files when used with <>.  Somebody could indicate me how to fix that?

 

thx

Labels (1)
0 Kudos
2 Replies

424 Views
CompilerGuru
NXP Employee
NXP Employee

CW is searching for includes with <> only in system paths. Includes with "" use both, user and system paths.

So when CW does not find MQX headers (I did not use MQX) this means that the search paths to those files are listed as user paths.

 

Daniel

0 Kudos

424 Views
JuroV
NXP Employee
NXP Employee

MQX uses header directories, where the headers needed to build a library usually (i.e. that's not the rule) resident. After library is compiled, post-build batch command is run, in which all needed header files from these header directories ARE COPIED to the special lib directory (watch your <MQX_INSTALL_PATH>/lib/<BOARD_NAME>/<LIBRARY_NAME>/*.h

 

This directory should be included in your Access Paths settings of the project (as mentioned in the message above). DO NOT INCLUDE original paths from libraries when building target application, but use lib directory!

0 Kudos