HaxeFoundation / HaxeFoundation/hxcpp
[Linux] Error when compiling with `HXCPP_TRACY`
- Dominant language
- C++
- Stars
- 330
- Forks
- 227
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 18
Description
### Error
```
Error: In file included from /.../TurnBasedRPG/.haxelib/hxcpp/git/src/hx/TelemetryTracy.cpp:2:
/.../TurnBasedRPG/.haxelib/hxcpp/git/include/hx/TelemetryTracy.h:9:10: fatal error: /.../TurnBasedRPG/export/linux/obj/obj/linux64/__pch/runtime/hxcpp.h: File or directory does not exist
9 | #include
| ^~~~~~~~~
compilation terminated.
```
##
Adding `#include ` to `hxcpp.h` like below fixes the error for me but I'm not sure if that's the correct way to solve it.
```diff
diff --git a/include/hxcpp.h b/include/hxcpp.h
index c29e6e96..31affe77 100755
--- a/include/hxcpp.h
+++ b/include/hxcpp.h
@@ -343,6 +343,9 @@ typedef PropertyAccessMode PropertyAccess;
#include "Enum.h"
#include
#include
+#ifdef HXCPP_TRACY
+ #include
+#endif
#if defined(__OBJC__) && defined(HXCPP_OBJC)
#include
#endif
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.