Вы находитесь на странице: 1из 1

Question: Answer:

What are the proper system environment settings for Microsoft Visual C++ 2010 Express Edition compiler for 32-bit Windows? This FAQ is provided as a courtesy for OPNET users to help with the initial configuration of Microsoft Visual C++ 2010 Express Edition; OPNET Technical Support does not officially support system administration for non-OPNET products. The following variables need to be specified for proper operation of MSVC++ with OPNET. (Depending on how MSVC was installed, these variables may have already been set by the MSVC installation process.) NOTE: **The following settings assume that Visual Studio 2010 Express Edition has been installed using the default installation directory settings ("C:\Program Files\Microsoft Visual Studio 10.0") and that your Windows directory is C:\Windows. **Provided is the list of environment settings that should be added or set in the System Variables on your computer. If the variable name already exists on your system, make sure that the value associated for that variable is accurate. If not, you must add the correct value as discussed below. --Procedure: -----------------------------------------------1. Open the Microsoft Visual Studio Console (Default path: Start> Programs> Microsoft Visual Studio 2010 Express> Visual Studio Command Prompt (2010)) 2. Generate the environment variables from your Microsoft Visual Studio compiler by entering the "set" command. Since you only need three variables ("INCLUDE", "LIB", and "Path"), simply enter the set commands in the MSVS command prompt as follows: %> set INCLUDE %> set LIB %> set Path 3. Each of the commands above produces a value for the respective variable entered. Copy each value exactly as it appears. **Take note of the following when copying the variables: -INCLUDE: Copy the whole string generated -LIB: Copy everything before "LIBPATH =" -PATH: Copy everything up to "C:\Windows System32" 4. Open the System Properties window to create the user variables. This may be done through: Control Panel> System> Advanced> Environment Variables. 5. If the variable(s) above do not exist in your user variables, please create the variable as explained in step 6 below. If any of the above variables exist, make sure that the value to that variable is exactly the same as its respective output from the Visual Studio Command Prompt from step 3 above. 6. To create a new system variable, click on the "New" tab from the System Properties window opened in step 4 above. Enter the variable name (e.g., INCLUDE) and the variable value (e.g., INCLUDE output from the MSVC console) in the respective fields. Be careful not to add any spaces or unexpected characters. Repeat this step for each of the three variables. 7. Click OK to save the changes made on the system variables. ---To ensure that the Compiler 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. After this, start OPNET Modeler and run simulations as usual.

Вам также может понравиться