when we want to add mdk include folders, we have to select one by one, is there any configuration files where we can copy and paste the path of header files?
For example ,when I set up PC-Lint Options, I have to add Include Folders one by one, even cannot use copy and paste! There's just too many Include folders for me to do like this ! It really bothers me!
You could generate a batch file: http://www.keil.com/support/docs/2594.htm
This will creates input files for the compiler command line which also has all the includes set.
Thanks,Matthias. But I see no include folders except following list in batch file. Should I add the include folders myself in command line ?
SET PATH=D:\Keil_v5\ARM\ARMCC\Bin;C:\Program Files (x86)\...... SET CPU_TYPE=.. SET CPU_VENDOR=.. SET UV2_TARGET=.. SET CPU_CLOCK=.. "D:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\output\laser_data_parse.__i" "D:\Keil_v5\ARM\ARMCC\Bin\ArmCC" --Via ".\output\phy_ksz8081rna.__i" ......
The include path specifications, like all the other arguments to the compiler, are in those *.__i files. And you're probably best off doing the same for your Lint configuration: put all the include options in a *.lnt file, and put that into the command line for lint.
No you don't!
The 'Include Paths' box in the in the 'C/C++ Compiler' options is just a plain text-entry field - you can type or paste a list of entries there:
http://www.keil.com/support/man/docs/uv4/uv4_dg_adscc.htm
Thanks a lot ! And I would like to put the include options in .lnt files to make PC-lint work.
In the next upcoming MDK version 5.15 (release schedule for next week), our engineering team added a new option: Use project-target related include folders.
See: http://www.keil.com/support/man/docs/uv4/uv4_dg_lintsetup.htm
This should simplify the setup of PC-LINT.
Can you wait for that update?
Are there any patches we can use to update it conveniently ,or do we have to re-install the whole MDK packages? MDK releases frequently, and we love the new features while consistency is rather important to our team.
Thanks a lot !