Setup the Microsoft Visual C++ compiler (Win64) - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Compiling : Setup the Microsoft Visual C++ compiler (Win64)

Compiler

  

Setup

  

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

 

Calling Sequence

Parameters

Description

Downloading and Installing Microsoft Visual C++ Express Edition

Setting Up the Visual C++ Compiler

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. This procedure may require 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.

  

Note: For the most current instructions on installing and setting up a Microsoft Visual C++ compiler, see the compiler setup pdf document, https://www.maplesoft.com/documentation_center/maplesim2020/Setting-Up-MSVC-2019.pdf .

Downloading and Installing Microsoft Visual C++ Express Edition

• 

To install Microsoft Visual Studio Express 2017 for Windows Desktop, do the following:

1. 

Go to https://www.visualstudio.com/vs/visual-studio-express/.

2. 

Scroll down to the Still want Visual Studio Express? section.

3. 

Click Express 2017 for Windows Desktop.

4. 

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

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. The supported compilers are Visual Studio 2022.

• 

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 the vcvarsx86_amd64.bat file 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 to the vcvarsx86_amd64.bat file.

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.

See Also

Compiler:-Compile