Basically I am a novice for both OPNET and Visual studio *(2005). But
as a meter of fact I need to learn both. Initially I tried to install
OPNET 11.5. For doing so, I first installed MS Visual studio2005. Then
i tried to install OPNET. During installation i was notified that the C
++ compiler was not detected. However, I ignored that message. After
running some example Networks, I got the following error message.
"bind_so_msvc: Unable to execute bind program (Win32 error code: 2)
Check that Visual C++ has been installed correctly, and that
its BIN directory is included in the Path environment variable.
"
Please help me.
Thanks
Adam
My operating system is Windows XP SP3 . And it is 32 bit.
please sir also add the information about the location where i need to
put those variables.
thank you once agian.
Newaz
> > Thanks- Hide quoted text -
>
> - Show quoted text -
PATH=
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;
C:\Program Files\Microsoft Visual Studio 8\VC\BIN;
C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;
C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\bin;
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\bin;
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin;
C:\WINNT\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin;
C:\WINNT\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 8\VC\bin;
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;
C:\Program Files\Microsoft Visual Studio 8\VC\vcpackages;
INCLUDE=
C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\INCLUDE;
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE;
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include;
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\include;
LIB=
C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB;
C:\Program Files\Microsoft Visual Studio 8\VC\LIB;
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib;
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib;
LIBPATH=
C:\WINNT\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB;
NETSAMPLEPATH=
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0;
DEVENVDIR=
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;
FRAMEWORKDIR=
C:\WINNT\Microsoft.NET\Framework;
FRAMEWORKSDKDIR=
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0;
FRAMEWORKVERSION=
v2.0.50727;
VCINSTALLDIR=
C:\Program Files\Microsoft Visual Studio 8\VC;
VSINSTALLDIR=
C:\Program Files\Microsoft Visual Studio 8;
Adam
Thanks for your effort. I am facing the same problem again.
Basically my OS and (OPNET and Visual studio2005) are installed in D
drive. Therefore i just replaced C with D in the text file you sent
me. And then I added those in system variable (attaching one
screenshot of that). Then I tried to run one example networks. After a
while I got the previous message again. Please help me.
N..
--------------------------------
Adam
in command prompt i got this
----------------------------------------------------------------------------------------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\Documents and Settings\newaz_kaist>cl
'cl' is not recognized as an internal or external command,
operable program or batch file.
D:\Documents and Settings\newaz_kaist>
-----------------------------------------------------------------------------------------------
And in Visual Studio 2005 Command Prompt i got this
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
D:\Program Files\Microsoft Visual Studio 8\VC>cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762
for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
D:\Program Files\Microsoft Visual Studio 8\VC>
thanks once again.
==========================================================
> > > - Show quoted text -- Hide quoted text -
Adam
-------------------------------------------------------------------------------------
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
> D:\Documents and Settings\newaz_kaist>cl
> 'cl' is not recognized as an internal or external command,
> operable program or batch file.
> D:\Documents and Settings\newaz_kaist>
That is the problem.
Your variable is not set correctly.
You should find "cl" from the command line.
Your PATH variable is not set accordingly.
Eric.
i followed exactly the same way you wrote here. i am mentioning the
sequence here.
1. Visual studio2005
2. modeler_115A_PL1_3352_win32
3. models_11.5.A_21-Sep-2005_win32
4. modeler_docs_21-Sep-2005_win32
thanks once again sir..
On Mar 30, 7:24 am, Adam Davies <adamjdav...@live.co.uk> wrote:
> Ok, this may sound strange, but what order did you install visual
> studio, and opnet in? I've had numerous problems similar to yours, and
> installation order can cause problems too (don't ask me why) the best
> way to install is by installing visual studio first, then opnet
> modeller, then opnet library, then opnet documentation.
>
> Adam
>
> On Mar 30, 3:15 pm, Nightrider <shne...@gmail.com> wrote:
>
>
>
> > Dear sir
>
> > in command prompt i got this
>
> > ----------------------------------------------------------------------------------------------
> > Microsoft Windows XP [Version 5.1.2600]
> > (C) Copyright 1985-2001 Microsoft Corp.
> > D:\Documents and Settings\newaz_kaist>cl
> > 'cl' is not recognized as an internal or external command,
> > operable program or batch file.
> > D:\Documents and Settings\newaz_kaist>
>
> > -----------------------------------------------------------------------------------------------
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;
C:\Program Files\Microsoft Visual Studio 8\VC\BIN;
C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;
C:\WINDOWS\Microsoft.NET\Framework\v3.5;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;
Adam
I am not sure whether it is a good or bad news. Now there is no such
error message after putting these new variables, however i tried put
'cl' in command prompt and again i am getting the previous message.
(shown below)
--------------------------------------------------------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\Documents and Settings\newaz_kaist>cl
'cl' is not recognized as an internal or external command,
operable program or batch file.
---------------------------------------------------------------
Do u have any idea sir?
thanks again .
On Mar 30, 7:37 am, Adam Davies <adamjdav...@live.co.uk> wrote:
> Try these variables in PATH instead -
>
> C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;
> C:\Program Files\Microsoft Visual Studio 8\VC\BIN;
> C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;
> C:\WINDOWS\Microsoft.NET\Framework\v3.5;
> C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
> C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;
> C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;
>
> Adam
>
> On Mar 30, 3:24 pm, Adam Davies <adamjdav...@live.co.uk> wrote:
>
>
>
> > Ok, this may sound strange, but what order did you install visual
> > studio, and opnet in? I've had numerous problems similar to yours, and
> > installation order can cause problems too (don't ask me why) the best
> > way to install is by installing visual studio first, then opnet
> > modeller, then opnet library, then opnet documentation.
>
> > Adam
>
> > On Mar 30, 3:15 pm, Nightrider <shne...@gmail.com> wrote:
>
> > > Dear sir
>
> > > in command prompt i got this
>
> > > ----------------------------------------------------------------------------------------------
> > > Microsoft Windows XP [Version 5.1.2600]
> > > (C) Copyright 1985-2001 Microsoft Corp.
> > > D:\Documents and Settings\newaz_kaist>cl
> > > 'cl' is not recognized as an internal or external command,
> > > operable program or batch file.
> > > D:\Documents and Settings\newaz_kaist>
>
> > > -----------------------------------------------------------------------------------------------
Hello,
The settings that Adam gave you are correct.
Just be sure that the cl executable is in the directory
C:\Program Files\Microsoft Visual Studio 8\VC\BIN.
If it is there, you did not set properly the PATH
variables.
Eric.
Thanks a lot.
Could you please me whether i am in write track or not?
In the command prompt i tried to execute the cl file in the following
way. (Note: my OS is in D drive)
i am pasting here what i gave as command and what i got as output:
---------------------------------------------------------------------------------------------------------------------------------------------
D:\Program Files\Microsoft Visual Studio 8\VC\bin>cl
[command]
[Output is below]
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762
for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
---------------------------------------------------------------------------------------------------------------------------------------------
So does this output make any sense?
Does it mean cl is executable from that directory "D:\Program Files
\Microsoft Visual Studio 8\VC\bin" .
Please clarify me (a novice).
Thanks again to Eric and Adam.
----------------
Newaz
==================================================
How are your simulations, do they run without any errors? If so, it
would seem modeller knows where to look for the linker and you should
be able to get away with it as it is.
Adam
That is the problem. You installed OPNET Modeler in drive D:
So you have to replace C: to D: in all the environment variables.
Then you just open a DOS shell, and without going to the
OPNET directory (D:\Program Files\Microsoft Visual Studio 8\VC\bin),
the command cl should work and give you the result that you
show us in your previous E-mail.
Eric.
hi, i have been reading your emails which is quite fruitful, i am
having same troubles but i m using windows 7 and the compiler im using
is visual studio 9.0(even though i installed visual studio 8 but it
installed vs09) i am having problems with the compilation as well at
the moment its not compiling anything, any help in this matter will be
very helpful thanks alot
On 30 Mar, 15:37, Adam Davies <adamjdav...@live.co.uk> wrote:
> Try these variables in PATH instead -
>
> C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;
> C:\Program Files\Microsoft Visual Studio 8\VC\BIN;
> C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;
> C:\WINDOWS\Microsoft.NET\Framework\v3.5;
> C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
> C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;
> C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;
>
> Adam
>
> On Mar 30, 3:24 pm, Adam Davies <adamjdav...@live.co.uk> wrote:
>
>
>
> > Ok, this may sound strange, but what order did you install visual
> > studio, and opnet in? I've had numerous problems similar to yours, and
> > installation order can cause problems too (don't ask me why) the best
> > way to install is by installing visual studio first, then opnet
> > modeller, then opnet library, then opnet documentation.
>
> > Adam
>
> > On Mar 30, 3:15 pm, Nightrider <shne...@gmail.com> wrote:
>
> > > Dear sir
>
> > > in command prompt i got this
>
> > > ----------------------------------------------------------------------------------------------
> > > Microsoft Windows XP [Version 5.1.2600]
> > > (C) Copyright 1985-2001 Microsoft Corp.
> > > D:\Documents and Settings\newaz_kaist>cl
> > > 'cl' is not recognized as an internal or external command,
> > > operable program or batch file.
> > > D:\Documents and Settings\newaz_kaist>
>
> > > -----------------------------------------------------------------------------------------------
> hi, i have been reading your emails which is quite fruitful, i am
> having same troubles but i m using windows 7 and the compiler im using
> is visual studio 9.0(even though i installed visual studio 8 but it
> installed vs09) i am having problems with the compilation as well at
> the moment its not compiling anything, any help in this matter will be
> very helpful thanks alot
From FAQ ID: 2254
Question: Is OPNET Software supported on Windows 7?
Answer: Only version 16.0 PL1 of IT Guru, IT Guru Network Planner, SP
Guru Network Planner, and OPNET Modeler are supported on Windows 7.
However, there are restrictions, which are documented on the System
Requirements page.
Hope this can help.
Eric.
> when i run any example scenario in my OPNET 14, it works well.
> however, i when i try to compile any process model i get one error.
> Cannot open iclude file: 'string.h'; invalid argument.
I think it is a problem of having the correct setting. Do not use Windows 7
with OPNET 14. Use Windows XP.
For Visual Studio Express Edition 2008 and OPNET 14, the setting is as
follow. Pay a special attention to the setting of the INCLUDE variable.
Also, verify that your computer have directories:
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include;
-----------------------------------------------------------
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\INCLUDE;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include;
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\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\
I hope this can help.
Eric.