[Issue 23430] New: ImportC include <> didn't work but quotes does
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 20 16:05:55 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=23430
Issue ID: 23430
Summary: ImportC include <> didn't work but quotes does
Product: D
Version: D2
Hardware: All
OS: Mac OS X
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: alphaglosined at gmail.com
Filing on behalf:
Parser generated by tree-sitter project (D grammar).
```
parser.c:1:10: error: 'tree_sitter/parser.h' file not found with <angled>
include; use "quotes" instead
#include <tree_sitter/parser.h>
^~~~~~~~~~~~~~~~~~~~~~
"tree_sitter/parser.h"
```
dmd v2.101.0-beta
``dmd p.d -main``
```
module p;
import parser;
```
Directory structure:
```
scanner.c
tree_sitter/parser.h
parser.c
p.d
```
It does compile and link when switch to quotes instead of the brackets.
--
More information about the Digitalmars-d-bugs
mailing list