Marc Vandenhende

Include files in Codewarrior 10

Discussion created by Marc Vandenhende on Feb 24, 2010
Latest reply on Mar 21, 2011 by Ray Depew

I'm trying to build an imported project in Codewarrior 10, but apparently the referenced #include files cannot be found by the compiler. I get the "unresolved inclusion" message.

The on line Codewarrior Infocenter says...

 

Include FilesThe search for include files is governed by two environment variables: GENPATH: #include "File" Path and LIBRARYPATH: `include <File>' Path. Include files that are included using double quotes as in:#include "test.h"are searched first in the current directory, then in the directory specified by the -I: Include File Path option, then in the directories given in the GENPATH: #include "File" Path environment variable, and finally in those listed in the LIBPATH or LIBRARYPATH: `include <File>' Path environment variable. The current directory is set using the IDE, the Program Manager, or the DEFAULTDIR: Default Current Directory environment variable.Include files that are included using angular brackets as in#include <stdio.h>are searched for first in the current directory, then in the directory specified by the -I option, and then in the directories given in LIBPATH or LIBRARYPATH. The current directory is set using the IDE, the Program Manager, or the DEFAULTDIR environment variable.

 

 

The classic Codewarrior had a window in which one could insert a list of paths with folders containing the include files. Do I now have to put all those paths in an (DOS style) environment variable? There must be a better way, or maybe I don't understand what the documentation is saying.

 

Please help!

Outcomes