Skip to content

Headers not included post-build #26

@ba-ab-not-a-ba

Description

@ba-ab-not-a-ba

I am trying to build ASL from source on Windows 11 Enterprise. I think I succeeded, but I am surprised that only got three header files in the include directory. My question is about how I get those additional header files as a build output. I assume that I need additional header files, because when I tried to build pynumero and link it to ASL, it complained about a missing "asl_pfgh.h"...

What I did: I cloned this repository, created a build directory, ran cmake (version 4.1.0 installed via pip) and then built ASL:

git clone --recursive https://github.com/ampl/asl.git
cd asl
mkdir build
cd build
cmake .. -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE="Release"
& "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe" ".\ASL.sln" /p:Configuration=Release /p:Platform=x64 /t:Build

Build succeeded. But when I look inside the generated include folder:

cd include
ls
Directory: C:\Projects\asl\build\include

Mode LastWriteTime Length Name


-a--- 17/10/2025 4:53 PM 1927 arith.h
-a--- 17/10/2025 4:01 PM 185 details.c
-a--- 17/10/2025 4:01 PM 3166 stdio1.h

Only three files... I thought this was fine, until I tried to build pynumero and link it to ASL which complained about a missing "asl_pfgh.h".

Where are the header files supposed to go and how can I get them from the build? Sorry if this not an ASL problem. Giving up for the weekend and thought it was worth asking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions