Add include file failed

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

Add include file failed

ソリューションへジャンプ
1,886件の閲覧回数
allen_tseng
Contributor I

Hi

I refer this thread to add include header files.

https://community.nxp.com/t5/LPCXpresso-IDE-FAQs/Adding-Include-paths-to-a-project/m-p/467852

But when i add usb path, not all header file are searched.

Please help to solve this question.

Allen

0 件の賞賛
返信
1 解決策
1,876件の閲覧回数
converse
Senior Contributor V

The problem is that Windows has a limit of the length of any command of 2047 characters (when executed with ShellExecute, which is what Make will do - see https://devblogs.microsoft.com/oldnewthing/20031210-00/?p=41553). The command lines being generated by your project are over 5000 characters long.

Looking at your project, you seem to have added every possible directory to the include list. This is not necessary - you should only add those that actually have include files that are required. Reducing the number of include directories so that you only use what is necessary should solve your problem.

Also, you should consider placing your project into a directory with a much shorter path.

I know this is not ideal, but this is caused by a limitation in Windows.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,877件の閲覧回数
converse
Senior Contributor V

The problem is that Windows has a limit of the length of any command of 2047 characters (when executed with ShellExecute, which is what Make will do - see https://devblogs.microsoft.com/oldnewthing/20031210-00/?p=41553). The command lines being generated by your project are over 5000 characters long.

Looking at your project, you seem to have added every possible directory to the include list. This is not necessary - you should only add those that actually have include files that are required. Reducing the number of include directories so that you only use what is necessary should solve your problem.

Also, you should consider placing your project into a directory with a much shorter path.

I know this is not ideal, but this is caused by a limitation in Windows.

0 件の賞賛
返信
1,860件の閲覧回数
allen_tseng
Contributor I

Hi

Thanks for your reply.

I'm already to modify and solved.

Allen

0 件の賞賛
返信