I saved a standard process model to a new name and now it won't compile! It complains about missing header files.

Categories:
Solution Number:
S20667
Last Modified:
2013-08-20
Issue

I saved a standard process model to a new name and now it won't compile! It complains about missing header files.

Solution

First, a few words about header files and the # include statement.When the preprocessor finds an #include directive it replaces it by the whole content of the specified file. There are two ways to specify a file to be included: #include file.h#include <file.h>The difference between the two forms is the order in which the compiler searches for header files.#include file.h: This form instructs the preprocessor to look for include files (a) in the same directory of the file that contains the #include statement,(b) and then in the directories of any files that include (#include) that file,(c) and then searches along the path specified by the /I compiler option,(d) then along paths specified by the INCLUDE environment variable.#include <file.h>: This form instructs the preprocessor to search for include files(a) first along the path specified by the /I compiler option,(b) then, along the path specified by the INCLUDE environment variable.Note1 : In OPNET environment, header files that are included in more than one standard process model are stored in the standard include directory: <opnet_dir>/<release>/models/std/includeNote 2: In OPNET environment, header files that are included by only one process model are found only in the same directory as the process model.If you having trouble with header files, check the following:- where you saved your process model- if you used angle brackets or quotes to include your header files- path specified in your INCLUDE environment variableIf you have any specific questions, contact OPNET Technical Support with the following informaiton:- The exact error message- Output of the set command(Run this from the OPNET Console)- The exact path to the project and header files- The code snippet containing the # include statements.

Environment

Compiling/Linking

Attachments
NOTICE: Riverbed® product names have changed. Please refer to the Product List for a complete list of product names.
Can't find an answer? Create a case