setup the Microsoft Visual C++ compiler on 64-bit Windows platforms - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Compiling : Compiler/Setup

Compiler:-Setup - setup the Microsoft Visual C++ compiler on 64-bit Windows platforms

Calling Sequence

Compiler:-Setup()

Compiler:-Setup( path )

Parameters

path

-

string; a Maple string

Description

• 

The procedure Compiler:-Setup is used to set up the location of the batch file used by the Microsoft C compiler on 64-bit Windows platforms.  On other platforms, it currently serves no purpose and simply raises an exception. In Vista 64 and Windows 7, the procedure requires administrator access. By default Maple will automatically detect and use the latest version of Microsoft C compiler and Windows Software Development Kit (SDK) that is installed on the system. Compiler:-Setup can be used to configure a different compiler and SDK combination to be used.

• 

If called with a string path, the path argument should be the full path to the vcvars64.bat batch file distributed with the Windows Software Development Kit (SDK)

• 

If called with no arguments, a dialog is presented within which you may browse the file system to locate the vcvars64.bat file.

• 

Upon successful completion, the Compiler:-Setup command stores the location of the vcvars64.bat file in a launch.ini file so that Maple may set the environment properly for use of the Microsoft C compiler. Maple should be restarted upon completion.

• 

The following two sections provide instructions on downloading, installing and setting up the Express Edition of the Microsoft Visual C++ compiler.

Downloading and Installing Microsoft Visual C++ Express Edition

• 

Download and install either (a.) Visual Studio Express 2013 or Visual Studio Express 2012 or (b.) the full .NET Framework 4, the Windows SDK for Windows 7 and .NET Framework, and Visual Studio Express 2010. The instructions for both versions are given in the following sections.

 

 

a. 

Downloading Visual Studio Express 2013 or 2012

• 

Important: Visual Studio Express 2013 and Visual Studio Express 2012 are supported only on Windows 7 SP1 and Windows 8.1. Users with other versions of Windows should download and install the full .NET Framework 4, the Windows SDK for Windows 7 and .NET Framework, and Visual Studio Express 2010.

• 

To install Microsoft Visual Studio Express 2013 or 2012 for Windows Desktop, do the following:

1. 

Go to http://www.microsoft.com/visualstudio/eng/downloads.

2. 

Expand the Visual Studio Express 2013 for Windows Desktop section (or the Visual Studio Express 2012 for Windows Desktop section).

3. 

Select your download language.

4. 

Click Install Now.

Note: After installation, you must register Visual Studio Express within 30 days.

 

 

a. 

Downloading and installing the full .NET Framework 4, the Windows SDK for Windows 7 and .NET Framework 4, and Visual Studio Express 2010

• 

To download and install the full .NET Framework 4, do the following:

1. 

Go to http://www.microsoft.com/en-us/download/details.aspx?id=17718.

2. 

Select your download language.

3. 

Click Download. If you are prompted to either run or save the file, choose to save the file.

4. 

Browse to the location of the install file (by default, your Downloads folder), and then run the install file.

5. 

Follow the instructions for installing the .NET Framework 4.

• 

To download and install Windows SDK for Windows 7 and .NET Framework 4, do the following:

1. 

Go to http://msdn.microsoft.com/en-us/windowsserver/bb980924.aspx.

2. 

Scroll to the Download the Windows SDK for Windows 7 and .NET Framework 4 section, and then click Install Now.

3. 

Click Download. If you are prompted to either run or save the file, choose to save the file.

4. 

Browse to the location of the install file (by default, your Downloads folder), and then run the install file.

5. 

Follow the instructions for installing the Windows SDK for Windows 7 and .NET Framework 4.

Note: Make sure that you install the Visual C++ Compilers component. This requires a full installation of the .NET Framework 4.

• 

To download and install Microsoft Visual C++ 2010 Express Edition (which is a free download), do the following:

1. 

Go to http://www.microsoft.com/visualstudio/eng/downloads.

2. 

Expand the Visual C++ 2010 Express section.

3. 

Select your download language.

4. 

Click Install Now. If you are prompted to either run or save the file, choose to save the file.

5. 

Browse to the location of your install file (by default, your Downloads folder), and then run the install file.

6. 

Follow the instructions for installing Visual C++ 2010 Express.

Setting Up the Visual C++ Compiler

• 

Every time you launch the Standard Worksheet version of Maple your computer is automatically scanned for a suitable Microsoft Visual Studio C++ compiler. Supported compiler versions are: 2013, 2012, and 2010.

• 

If your supported version of Visual Studio C++ compiler is not detected, you can manually define the %LIB%, %INCLUDE% and %PATH% environment variables used by the compiler or you can set up the Microsoft Visual C++ compiler for Maple by specifying the path of either the vcvars64.bat file (for Visual Studio Express 2010) or the vcvarsx86_amd64.bat file (for Visual Studio Express 2013 or 2012) created during the Maple installation process. To specify the path of the file do the following:

• 

If Maple is already installed on your computer, you can run a command within Maple to specify the path of the file. Perform the following steps:

1. 

Open Maple.

2. 

At the Maple prompt, type Compiler:-Setup() and press Enter.

3. 

In the dialog box, specify the full path of either:

• 

the vcvars64.bat file (if you are using Visual C++ 2010 Express)

or

• 

the vcvarsx86_amd64.bat file (if you are using Visual Studio Express 2013 or 2012)

4. 

Close Maple.

– 

Note: The Compiler:-Setup() command is available in the Standard Worksheet version of Maple. If you are using the Command line version of Maple you must manually define the %LIB%, %INCLUDE% and %PATH% environment variables.

• 

Note: For the most current instructions on installing and setting up a Microsoft Visual C++ compiler, see the Compiler,Setup page in Maple online help.

See Also

Compiler:-Compile


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam