12.2.2. On Windows - 5.2 English - 57404

AOCL User Guide (57404)

Document ID
57404
Release Date
2025-12-29
Version
5.2 English

Sample Commands and Code Snippets:

Follow the same steps as in Linux to use AOCL-LibM on Windows but with Windows-specific compilation commands.

> set PATH=%PATH%;C:\path\to\AOCL-LibM\lib
> clang -Wall -std=c99 myprogram.c -o myprogram.exe -L"C:\path\to\AOCL-LibM\lib" -lalm

For Visual Studio:

> cl myprogram.c /I"C:\path\to\AOCL-LibM\include" /link "C:\path\to\AOCL-LibM\lib\libalm.lib"