Hello All,
I am trying to incorporate FNET into my CodeWarrior 10.3 projects, but am getting numerous "cannot find header.h" files error.
The FNET source code structure has subdirectories, each subdirectory contains source files which include header files at different levels in the structure. There is no relative specification in the inclusion of these header files (such as #include ../fnet_config.h. or #include ../cpu/fnet_cpu_config.h.)
I can either: 1) set the include paths in Project Settings to point to ALL source folders (but there is so many of them) , or 2) gather up all header files and put them in the common "Headers" folder, (too much work) or 3) modify the include lines in each source file for the relative location of the header file which needs to be included. (too much work, besides, should'nt have to touch the FNET files at all)
I am sure Codwarrior has some sort of setting for this? such as perhaps "Flatten all directories so I don't have to set the include paths for each and every source folder"
Any help would be greatly appreciated.
Mike
Hi Mike,
I assume this is for GNU gcc?
This problem (or asking recursive include paths) is a 'problem' of the compiler. Most compilers do not support a 'recursive' include path setting. The problem with this is that usually this causes more problem than it can solve. For example the order how the subdirectories are processed is heavily up to the host operating system (e.g. Windows will be different thant Linux than Mac).
I'm affraid that you will need to specify all the different folders.
Having said that: it would be rather better if FNET would change the way how the directories are organized? But this is probably not something you want to change.