Bug 23430 – ImportC include <> didn't work but quotes does
Status
RESOLVED
Resolution
INVALID
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
Mac OS X
Creation time
2022-10-20T16:05:55Z
Last change time
2023-12-16T21:15:32Z
Keywords
ImportC
Assigned to
No Owner
Creator
Richard Cattermole
Comments
Comment #0 by alphaglosined — 2022-10-20T16:05:55Z
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.
Comment #1 by bugzilla — 2023-04-09T06:32:58Z
That error message isn't generated by dmd. I don't know what to do with this.
Comment #2 by bugzilla — 2023-12-16T06:44:27Z
#include statements are handled by the preprocessor invoked by dmd, not dmd.
Comment #3 by bugzilla — 2023-12-16T21:15:32Z
There is insufficient information to determine the cause of the problem. In any case, it does not appear to be a dmd issue at all. I suspect the "tree-sitter project" may be the culprit.
Closing this.