www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24444] New: ImportC: no way to specify where header files

https://issues.dlang.org/show_bug.cgi?id=24444

          Issue ID: 24444
           Summary: ImportC: no way to specify where header files "live"
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: atila.neves gmail.com

This C file fails to compile with ImportC on my system:

-------------------
#include <Python.h>
-------------------

The reason why is that `Python.h` is in `/usr/include/python3.11`. There's no
way to tell the compiler to look for headers in specific directories.

--
Mar 20