I am using uVision2 version 2.37 and pc-lint version 8.00o. I have included the co-kc51.lnt and env-keil.lnt in the setup, as well as the pertinent include file paths. All I get is PC-Lint running and the header. I have checked to make sure that the env-keil.lnt contains the right info. I'm at a loss. If I try to run if from a batch file, it seems to run but can find the ansi standard header files and they are not in the Keil directory Any ideas would be welcome
Hmm... I use all caps in my PC-Lint setup and it works OK. I include: C:\Keil\C51\INC C:\Keil\C51\INC\Atmel I had the same problem as you reported originally. But I was using (someone else's) custom *.lnt that used +os to redirect the output from the Keil Build window into a file. Check out http://quest.phaedsys.org/ for tips on hitex/Keil/8051s.
With the help of Keil, I got PC-Lint working from the tools menu. the command will not accept C:\LINT\LINT-NT.EXE only small caps allowed I had to remove all include files except c:\keil\c51\inc and I could use only 1 *.lnt file configurstion file. I had to combine them all into one. forget the env-keil.lnt. It's not needed So, duplicating your parameters which work in the batch mode won't work unless you do the above
My suspicion is that it's a piping issue. Something is wrong with the env-keil.lnt and it doesn't pipe to the Output window. It looks pretty intimidating but I guess I'll have to try to get into it. I appreciate your help and the independent verification that it doesn't work on someone else's Keil IDE makes me stop looking for my own errors and look into the configuration.
I don't know that I can help you much here, since I usually run lint from my editor and not the Keil IDE. I did hop into uVision (v2.32) and tried it. I did "Setup PC-Lint", added the c:\lint\lnt directory in the top box, pointed it to the executable, and added my project lint file (above) as the "configuration file". So when I do "Lint all C Source Files", I get the same result. I see the PC-Lint banner in the Build window, and nothing else. So we presumably both are missing a configuration step.
Thanks Drew, I just didn't go down far enough in the INC directory. That solved the execution problem. I can now run it from the DOS prompt. So I know PC-Lint is working. I cannot run it from Keil tools dropdown. It just puts the PC-Lint header but the results don't seem to pipe to the output window. I have the env-keil.lnt which is supposed to solve this. Frustrating!
This is the project-specific lint file that I use:
-ic:\lint\lnt // Keil C51 co-kc51.lnt -si4 -sp4 // Codewright editor env-cw6.lnt // include paths for project -ic:\Keil\C51\inc // four additional project -i here -e537 // repeated include file -e655 // bit-wise op uses compatible enums -esym(553,DEBUG) // undefined, assumed 0 -esym(788,*Num*,*Force16*) // enum constant not used in switch -e834 // operator '-' followed by op '-' is confusing
View all questions in Keil forum