Include subfolder KDS

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Include subfolder KDS

ソリューションへジャンプ
1,442件の閲覧回数
danielecortella
Contributor V

Hi,

 

i normaly use the method: project properties > c\c++ build > setting > cross arm c compiler > includes for add folder that contain file to build. The problem is that the subfolder aren't include and i have to include all this. There i a better way? i have many subfolder, than add those singly is very long. Thanks

ラベル(1)
0 件の賞賛
1 解決策
887件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Hi Daniele,

unfortunately, that directory structure is not user friendly. It would have been much easier if all the include header files would be a single include folder (as it is standard for other projects). So I'm affraid that you have to add all the folders to the settings. There is no 'recursive' include mechanism in gcc.

Erich

元の投稿で解決策を見る

0 件の賞賛
4 返答(返信)
887件の閲覧回数
BlackNight
NXP Employee
NXP Employee

This trick might be what you are looking for:

Adding Multiple Include Paths to Build Settings in Eclipse | MCU on Eclipse

Erich

887件の閲覧回数
danielecortella
Contributor V

Hi,

the problem is that i have download this zip: Kinetis Bootloader|Freescale and it contain a src folder with many other folder .... i have to add every subfolder manualy .... There is a faster way for let see the subfolder to the compiler? Thanks

0 件の賞賛
888件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Hi Daniele,

unfortunately, that directory structure is not user friendly. It would have been much easier if all the include header files would be a single include folder (as it is standard for other projects). So I'm affraid that you have to add all the folders to the settings. There is no 'recursive' include mechanism in gcc.

Erich

0 件の賞賛
887件の閲覧回数
danielecortella
Contributor V

Thanks!

0 件の賞賛