Cannot compile using OPNET.

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

Cannot compile using OPNET.

Solution

Step 1) Make sure that the compiler is installed correctly, that you can compile files outside of OPNET, and that you have an ANSI-compliant compiler. Instructions for confirming ANSI compliance may be found in the OPNET FAQ entitled:What does the compilation error 'can't open include file <model_name>.pr.h' mean? 2) Make sure that the compiler is in your PATH. That is, can you open a new command window and simply invoke the compiler by typing its name (like 'cc' for the standard UNIX C compiler, or 'gcc' for the GNU C compiler, or 'cl' for the Visual C++ compiler. Often, not having the compiler in your path is enough to generate the error.3) Check your OPNET path. If you are using any UNIX architecture for release 3.5.A or later, then make sure your path includes<opnet_dir>/<release>/sys/unix/binDo NOT set your path to<opnet_dir>/<release>/sys/<arch>/binunless you are using a release of OPNET prior to 3.5.A.If this is the case, then you will also have to set your LD_LIBRARY_PATH to include<opnet_dir>/<release>/sys/<arch>/libIf you are running OPNET on a PC (for release 5.1 or lower), then make sure your path is set to<opnet_dir>/<release>/sys/<arch>/binand your lib is set to <opnet_dir>/<release>/sys/<arch>/lib.(OPNET 5.0 and lower users: This should have been taken care of when you ran op_newuser).If you still receive this error after taking these steps, contact OPNET Technical Support.

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