Add include file failed

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

Add include file failed

Jump to solution
964 Views
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 Kudos
1 Solution
954 Views
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.

View solution in original post

0 Kudos
2 Replies
955 Views
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 Kudos
938 Views
allen_tseng
Contributor I

Hi

Thanks for your reply.

I'm already to modify and solved.

Allen

0 Kudos