I have setup one Project Folder in which i have main Project Directory, say Main_Proj. In that folder, I have created two folders for Header_Files and Source_Files. Folder Header_Files only contains all header files. Lets say module_1a.h and so on. Can Lint resolve the include path of Header Files. Unable to open include file '. Pc-lint doesnt understand types from a included header file. Whereas, folder Source_Files contains main.c and again module wise folders, lets say Module_1 which only contains required.c files of particular module. So for example, folder Module_1 contains Module_1a.c and Module_1b.c. So the path for Module_1a.c would be = Main_proj Souce_Files Module_1 Module_1a.c and in all source file I have included the Header Files like below - //Code for Module_1a.c #include '. Header_Files Module_1a.h'. My IDE is MP LAB and this code and all modules are working fine with MP LAB xc8 compiler. Configurar red wifi router linksys. Problem occurs when i started Linting my code, its giving me error like - Error 322: Unable to open include file '. Header_Files Module_1a.h' I am using PC Lint for C and C++ (version 9). I searched for resolution of this error in Regference manual and got to know to include that directory with -i option. I also checked with set INCLUDE= but its not working. Is there any thing i can do with my std.lnt file or do i have to change the folder structure for my Project? Any source code tree organization where headers or paths contain. Is broken as designed. The way to go and do away with a lot of problems is • have a single project root directory • Use -I. When compiling, linting, preprocessing, static analyzing. • all file references in headers and the project makefile are as seen from the project root I.e. A header includes other headers using #include 'subdir/whatever/foo_module.h' and all compilation happens with the working directory being the project root, e.g. Subdir/whatever/foo_module.o: subdir/whatever/foo_module.c $(CC) $(CFLAGS) -I. Unable To Open Include File IostreamWhat is Lint? Lint is a tool intended to pick the nits out of your C/C++ code. You can think of it as an optimizing compiler with an attitude. It is a very useful code analysis tool. If you’ve programmed in C# and used you can think of it as the code analysis portion of ReSharper on steroids.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |