Building ADMB Source using Windows and Visual Studio

ADMB-13.0
Released May 31, 2022

Describe building ADMB from source for Windows and Visual C++ compilers.


Prerequisites

  • Visual Studio C++ is installed on the local computer.

Building Source

  1. Download

    Download source distribution admb-13.0-src.zip.

    Double click downloaded zip file and extract admb directory to C:\admb-13.0\>.

  2. Build

    Open Visual Studio Developer Command Prompt window

    • For Visual C++ 2015, Double click Developer Command Prompt for VS2015 in Visual Studio Tools.

    • For Visual C++ 2017, Double click Developer Command Prompt for VS2017 in Visual Studio Tools.

    • For Visual C++ 2019, Double click Developer Command Prompt for VS2019 in Visual Studio 2019.

    • For Visual C++ 2022, Double click Developer Command Prompt for VS2022 in Visual Studio 2022.

    In the Visual Studio Developer Command Prompt window, use the steps below to build ADMB.

    Change to admb directory.

    C:\> cd admb-13.0
    

    To build ADMB, use the command below.

    C:\admb-13.0\> nmake
    

    To build ADMB for debugging, use the command below.

    C:\admb-13.0\> nmake DEBUG=yes
    
  3. Test

    In the Developer Command Prompt window, use the steps below to build and run the examples.

    Build examples

    C:\admb-13.0\> cd examples
    C:\admb-13.0\examples\> nmake all
    

    Read manuals for more information.

Help

For help and support, contact users@admb-project.org.


ADMB Foundation © 2007–2021