digitalmars.D.bugs - [Issue 23513] New: ImportC doesn't export ncurses' attributes (C
- d-bugmail puremagic.com (24/24) Nov 26 2022 https://issues.dlang.org/show_bug.cgi?id=23513
https://issues.dlang.org/show_bug.cgi?id=23513 Issue ID: 23513 Summary: ImportC doesn't export ncurses' attributes (C macros) Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Keywords: ImportC Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: tomasortin mailbox.org When importing ncurses from D, ImportC doesn't seem to be exporting as enums (or at all) ncurses' macro definitions such as A_BOLD, as I have not been able to compile it and get errors like this: Error: undefined identifier `A_BOLD` Steps to reproduce: 1- Import ncurses into a D source file with "import ncurses". 2- Initialize ncurses with "initscr()" (that works without any issue) 3- Use any function with a ncurses attribute, for example "addch('a' | A_BOLD)" 4- Attempt to compile it. --
Nov 26 2022