Skip to content

Bad pkg-config configuration when building system packages with prefix=/usr #1802

@freedxmgxd

Description

@freedxmgxd

Cantera Version 3.0.0

When I tried to run the example of C++ program get error in math.h
g++ main/main.cpp -o myProgram -std=c++17 $(pkg-config --cflags --libs cantera)

I get the error:

In file included from /usr/include/cantera/base/ct_defs.h:19,
                 from /usr/include/cantera/base/ctexceptions.h:14,
                 from /usr/include/cantera/base/Solution.h:9,
                 from /usr/include/cantera/core.h:12,
                 from main/main.cpp:1:
/usr/include/c++/14.2.1/cmath:47:15: fatal error: math.h: No such file or directory
   47 | #include_next <math.h>
      |               ^~~~~~~~
compilation terminated.

The math.h is installed and seems works fine in another projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions