alifattahi
Newbie level 1
I Had your problem but I found the solution recently. If you use visual studio 2008, you must set enviroment variables for c compiler in a way you can compile c code using command prompt. after that you have to remove 'Network simulation repository ' setting. you have to set 'stdmod' in 'network simulation repository' for standard mode . finally you have to put these files in the project folder.
VC90.CRT.rc
VC90.CRT.manifest
VC90.CRT.res
VC90.DebugCRT.rc
VC90.DebugCRT.manifest
VC90.DebugCRT.res
if you do the steps correctly, your project will run without any error.
note that none of your models must be a standard node. you have to create them yourself ,or copy from the standard models.you have to give them different name because all models would be registered in opnet.
I found the following from the net. It explain how to configure your compiler.
As of 14.5 PL0,OPNET supports Microsoft Visual Studio 2008.
Notelease refer to FAQ 1685 for MSVS 2005, FAQ 1219 for .NET 2003 and FAQ 783 for .NET 2002 settings.
---
Note that you must ensure your system environment is set up correctly. Here is the list of environment settings that should be added or set in the System Variables on your computer.
(Note: If the variable name already exists, make sure that the value associated for that variable exists. If not, you must add the below value to the variable. Consult your System Administrator or Microsoft technical support for assistance. This FAQ is provided as a courtesy only.)
NOTE: The following settings assume that Visual Studio 2008 has been installed using the default installation directory settings and that your Windows directory is C:\Windows. If these are not the settings you have, then you must adjust the following settings accordingly.
Environment Settings for 32-bit Windows platforms are as below:
DevEnvDir=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
Framework35Version=v3.5
FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
FrameworkVersion=v2.0.50727
INCLUDE=
C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include;
LIB=
C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;
C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib;
LIBPATH=
C:\WINDOWS\Microsoft.NET\Framework\v3.5;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;
C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB;
PATH=
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;
C:\WINDOWS\Microsoft.NET\Framework\v3.5;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;
VCINSTALLDIR=
C:\Program Files\Microsoft Visual Studio 9.0\VC
VS90COMNTOOLS=
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\
VSINSTALLDIR=
C:\Program Files\Microsoft Visual Studio 9.0
WindowsSdkDir=
C:\Program Files\Microsoft SDKs\Windows\v6.0A\
Environment Settings for 64-bit Windows platforms are as below:
Framework35Version=v3.5
FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework64
FrameworkVersion=v2.0.50727
INCLUDE=
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include;
LIB=
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB\amd64;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\LIB\amd64;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib\x64;
LIBPATH=
C:\WINDOWS\Microsoft.NET\Framework64\v3.5;
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB\amd64;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\LIB\amd64;
Path=
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64;
C:\WINDOWS\Microsoft.NET\Framework64\v3.5;
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\VCPackages;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\x64;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
VCINSTALLDIR=
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC
VS90COMNTOOLS=
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\
VSINSTALLDIR=
C:\Program Files (x86)\Microsoft Visual Studio 9.0
WindowsSdkDir=
C:\Program Files\Microsoft SDKs\Windows\v6.0A\
To ensure that the MSVS 2008 is installed correctly, open a Command Prompt and type "cl" to invoke the compiler. Then type "link" to invoke the linker/binder. Confirm that each of these commands returns the correct information for the .NET installation.
VC90.CRT.rc
VC90.CRT.manifest
VC90.CRT.res
VC90.DebugCRT.rc
VC90.DebugCRT.manifest
VC90.DebugCRT.res
if you do the steps correctly, your project will run without any error.
note that none of your models must be a standard node. you have to create them yourself ,or copy from the standard models.you have to give them different name because all models would be registered in opnet.
I found the following from the net. It explain how to configure your compiler.
As of 14.5 PL0,OPNET supports Microsoft Visual Studio 2008.
Notelease refer to FAQ 1685 for MSVS 2005, FAQ 1219 for .NET 2003 and FAQ 783 for .NET 2002 settings.
---
Note that you must ensure your system environment is set up correctly. Here is the list of environment settings that should be added or set in the System Variables on your computer.
(Note: If the variable name already exists, make sure that the value associated for that variable exists. If not, you must add the below value to the variable. Consult your System Administrator or Microsoft technical support for assistance. This FAQ is provided as a courtesy only.)
NOTE: The following settings assume that Visual Studio 2008 has been installed using the default installation directory settings and that your Windows directory is C:\Windows. If these are not the settings you have, then you must adjust the following settings accordingly.
Environment Settings for 32-bit Windows platforms are as below:
DevEnvDir=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
Framework35Version=v3.5
FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
FrameworkVersion=v2.0.50727
INCLUDE=
C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include;
LIB=
C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;
C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib;
LIBPATH=
C:\WINDOWS\Microsoft.NET\Framework\v3.5;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB;
C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB;
PATH=
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;
C:\WINDOWS\Microsoft.NET\Framework\v3.5;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;
VCINSTALLDIR=
C:\Program Files\Microsoft Visual Studio 9.0\VC
VS90COMNTOOLS=
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\
VSINSTALLDIR=
C:\Program Files\Microsoft Visual Studio 9.0
WindowsSdkDir=
C:\Program Files\Microsoft SDKs\Windows\v6.0A\
Environment Settings for 64-bit Windows platforms are as below:
Framework35Version=v3.5
FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework64
FrameworkVersion=v2.0.50727
INCLUDE=
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\INCLUDE;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include;
LIB=
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB\amd64;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\LIB\amd64;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib\x64;
LIBPATH=
C:\WINDOWS\Microsoft.NET\Framework64\v3.5;
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\ATLMFC\LIB\amd64;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\LIB\amd64;
Path=
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64;
C:\WINDOWS\Microsoft.NET\Framework64\v3.5;
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\VCPackages;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE;
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\x64;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
VCINSTALLDIR=
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC
VS90COMNTOOLS=
C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools\
VSINSTALLDIR=
C:\Program Files (x86)\Microsoft Visual Studio 9.0
WindowsSdkDir=
C:\Program Files\Microsoft SDKs\Windows\v6.0A\
To ensure that the MSVS 2008 is installed correctly, open a Command Prompt and type "cl" to invoke the compiler. Then type "link" to invoke the linker/binder. Confirm that each of these commands returns the correct information for the .NET installation.