Add include file failed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Add include file failed

跳至解决方案
1,876 次查看
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,866 次查看
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,867 次查看
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,850 次查看
allen_tseng
Contributor I

Hi

Thanks for your reply.

I'm already to modify and solved.

Allen

0 项奖励
回复