# \#haxe-cpp

**URL:** https://community.haxe.org/tag/haxe-cpp/3.md

[Latest](https://community.haxe.org/latest.md) · [Categories](https://community.haxe.org/categories.md) · [Tags](https://community.haxe.org/tags.md)

---

## [Hatchet — a Haxe 4.x → C++98 transpiler for retro/legacy targets (first release)](https://community.haxe.org/t/hatchet-a-haxe-4-x-c-98-transpiler-for-retro-legacy-targets-first-release/4829)

<div class="topic-metadata">

**Author:** [@andrewglind](https://community.haxe.org/u/andrewglind)\
**Replies:** 0\
**Last updated:** [June 14, 2026, 5:47am UTC](https://community.haxe.org/t/hatchet-a-haxe-4-x-c-98-transpiler-for-retro-legacy-targets-first-release/4829 "2026-06-14T05:47:14Z")

</div>

Hi everyone, I’ve been quietly working on a little project and I’d love to finally share it: Hatchet, a transpiler from Haxe 4.x to portable C++98 — the kind of C++ that still compiles under Visual C++ 6.0, so it can ta…

---

## [Enumerating maps of pointers doesn't work right?](https://community.haxe.org/t/enumerating-maps-of-pointers-doesnt-work-right/4769)

<div class="topic-metadata">

**Author:** [@davidgiven](https://community.haxe.org/u/davidgiven)\
**Replies:** 0\
**Last updated:** [February 12, 2026, 8:35pm UTC](https://community.haxe.org/t/enumerating-maps-of-pointers-doesnt-work-right/4769 "2026-02-12T20:35:10Z")

</div>

Example code: var value = 99; var valuep: Pointer\<Int\> = untyped \_\_cpp\_\_("&{0}", value); var map: Map\<Pointer\<Int\>, String\> = new Map(); map\[valuep\] = "thing"; trace(map); for (lhs =\> rhs in map) trace(l…

---

## [Is there any way to stop haxe from generating ::hx::ClassOf\<T\>() when passing in a haxe type to native code?](https://community.haxe.org/t/is-there-any-way-to-stop-haxe-from-generating-classof-t-when-passing-in-a-haxe-type-to-native-code/4747)

<div class="topic-metadata">

**Author:** [@Vortex](https://community.haxe.org/u/Vortex)\
**Replies:** 2\
**Last updated:** [February 11, 2026, 11:57pm UTC](https://community.haxe.org/t/is-there-any-way-to-stop-haxe-from-generating-classof-t-when-passing-in-a-haxe-type-to-native-code/4747 "2026-02-11T23:57:22Z")

</div>

Im making a haxe community account because im genuinely about to lose my mind with this if i try and pass a haxe type into a native c++ function function foo(bar:Dynamic) // does cool native stuff and then i try and c…

---

## [Vupx Engine: a framework Engine for Nintendo Switch](https://community.haxe.org/t/vupx-engine-a-framework-engine-for-nintendo-switch/4735)

<div class="topic-metadata">

**Author:** [@Slushi](https://community.haxe.org/u/Slushi)\
**Replies:** 2\
**Last updated:** [December 28, 2025, 5:00pm UTC](https://community.haxe.org/t/vupx-engine-a-framework-engine-for-nintendo-switch/4735 "2025-12-28T17:00:17Z")

</div>

This is my first time posting here, but anyway, I’d like to show you my new project, which is Vupx Engine! An engine for the Nintendo Switch made with Haxe! Yes, Haxe! It’s based on a fork of HXCPP, and the libraries it…

---

## [Some lime setup error?](https://community.haxe.org/t/some-lime-setup-error/3275)

<div class="topic-metadata">

**Author:** [@sorihhahhaha](https://community.haxe.org/u/sorihhahhaha)\
**Replies:** 3\
**Last updated:** [October 5, 2021, 7:37pm UTC](https://community.haxe.org/t/some-lime-setup-error/3275 "2021-10-05T19:37:14Z")

</div>

Hello, I was creating a mod for fnf, until some error happened. I used “lime test windows” but for some reason, it gave me this error: C:\\Users\\sori\\Downloads\\random\\Funkin-master\\export\\release\\windows\\obj\>setlocal enab…

---

## [Can't call Haxe function from C++ through a NDLL](https://community.haxe.org/t/cant-call-haxe-function-from-c-through-a-ndll/4533)

<div class="topic-metadata">

**Author:** [@Davvex87](https://community.haxe.org/u/Davvex87)\
**Replies:** 0\
**Last updated:** [February 12, 2025, 2:21pm UTC](https://community.haxe.org/t/cant-call-haxe-function-from-c-through-a-ndll/4533 "2025-02-12T14:21:04Z")

</div>

I am trying to write a dynamic library in C++ to be used in Haxe applications which contains a function to add call-backs and another function to call all of them with some parameters, but I am unable to get it working. …

---

## [Prevent Program From Crashing Regardless](https://community.haxe.org/t/prevent-program-from-crashing-regardless/4355)

<div class="topic-metadata">

**Author:** [@Ongokiller50](https://community.haxe.org/u/Ongokiller50)\
**Replies:** 1\
**Last updated:** [September 25, 2024, 7:50pm UTC](https://community.haxe.org/t/prevent-program-from-crashing-regardless/4355 "2024-09-25T19:50:14Z")

</div>

Is there any way to make my program not crash regardless of the error?

---

## [Using Haxe from C++ and being careful with the GC](https://community.haxe.org/t/using-haxe-from-c-and-being-careful-with-the-gc/3984)

<div class="topic-metadata">

**Author:** [@singpolyma](https://community.haxe.org/u/singpolyma)\
**Replies:** 2\
**Last updated:** [June 28, 2023, 10:49pm UTC](https://community.haxe.org/t/using-haxe-from-c-and-being-careful-with-the-gc/3984 "2023-06-28T22:49:02Z")

</div>

I am writing a library in Haxe that I would like to use from C++. What do I need do to C++ side with references I get back from Haxe method calls to be sure the GC knows they are still live?

---

## [Hxcpp: Ways to retain objects outside of Haxe?](https://community.haxe.org/t/hxcpp-ways-to-retain-objects-outside-of-haxe/4294)

<div class="topic-metadata">

**Author:** [@kevinresol](https://community.haxe.org/u/kevinresol)\
**Replies:** 6\
**Last updated:** [July 22, 2024, 10:49am UTC](https://community.haxe.org/t/hxcpp-ways-to-retain-objects-outside-of-haxe/4294 "2024-07-22T10:49:14Z")

</div>

Let’s say I want to interop with some external C/C++ libraries which has their own memory management and they expose an allocation function: // allocates memory of the specified size // and returns the pointer to the me…

---

## [Move control back to haxe thread without registering](https://community.haxe.org/t/move-control-back-to-haxe-thread-without-registering/4210)

<div class="topic-metadata">

**Author:** [@singpolyma](https://community.haxe.org/u/singpolyma)\
**Replies:** 1\
**Last updated:** [July 10, 2024, 6:29pm UTC](https://community.haxe.org/t/move-control-back-to-haxe-thread-without-registering/4210 "2024-07-10T18:29:19Z")

</div>

Is it possible to move control from a thread created by a C++ library, back to a Haxe thread, without registering the foreign thread with the GC using SetTopOfStack? Ideally I just want the smallest thing I can do, push …

---

## [Recommendations for Debugging Tools in Haxe](https://community.haxe.org/t/recommendations-for-debugging-tools-in-haxe/4275)

<div class="topic-metadata">

**Author:** [@ken56](https://community.haxe.org/u/ken56)\
**Replies:** 2\
**Last updated:** [June 28, 2024, 9:19pm UTC](https://community.haxe.org/t/recommendations-for-debugging-tools-in-haxe/4275 "2024-06-28T21:19:16Z")

</div>

Hi everyone, :heart\_eyes: I’m relatively new to Haxe and currently working on a cross-platform project. I’m finding it a bit challenging to debug efficiently across different targets (JavaScript, C++, etc.). Could anyo…

---

## [Hxcpp runtime error](https://community.haxe.org/t/hxcpp-runtime-error/4274)

<div class="topic-metadata">

**Author:** [@acarioni](https://community.haxe.org/u/acarioni)\
**Replies:** 0\
**Last updated:** [June 26, 2024, 8:19am UTC](https://community.haxe.org/t/hxcpp-runtime-error/4274 "2024-06-26T08:19:01Z")

</div>

I have a C++ Haxe program that often crashes. The debugger indicates the crash is due to EXC\_BAD\_ACCESS (code=1, address=0xd0). The stack trace is as follows: // this is the top of the stack // the line below causes E…

---

## [Bunjs/Nodejs developed in Haxe with ffi to Haxe-\>C++](https://community.haxe.org/t/bunjs-nodejs-developed-in-haxe-with-ffi-to-haxe-c/4208)

<div class="topic-metadata">

**Author:** [@btakita](https://community.haxe.org/u/btakita)\
**Replies:** 2\
**Last updated:** [May 8, 2024, 2:57pm UTC](https://community.haxe.org/t/bunjs-nodejs-developed-in-haxe-with-ffi-to-haxe-c/4208 "2024-05-08T14:57:30Z")

</div>

Hi, I just started looking at Haxe. I’m amazed that source importing the js.Browser.\* package looks very similar to client side javascript. Anyways, on the server side. I would like to have a single language to create B…

---

## [Haxe cpp mysql throws "not implemented for this platform"](https://community.haxe.org/t/haxe-cpp-mysql-throws-not-implemented-for-this-platform/4227)

<div class="topic-metadata">

**Author:** [@neimanpinchas](https://community.haxe.org/u/neimanpinchas)\
**Replies:** 0\
**Last updated:** [May 1, 2024, 8:52pm UTC](https://community.haxe.org/t/haxe-cpp-mysql-throws-not-implemented-for-this-platform/4227 "2024-05-01T20:52:51Z")

</div>

I am trying to use mysql on cplusplus target. per this link sys.db.Mysql - Haxe 4.3.4 API, it should be supported, I can also see the binding code in the haxe std folder. However at runtime the default error message of…

---

## [Issue compiling with macro](https://community.haxe.org/t/issue-compiling-with-macro/4152)

<div class="topic-metadata">

**Author:** [@MemeHovy](https://community.haxe.org/u/MemeHovy)\
**Replies:** 1\
**Last updated:** [February 1, 2024, 12:35pm UTC](https://community.haxe.org/t/issue-compiling-with-macro/4152 "2024-02-01T12:35:17Z")

</div>

I made an macro to get the parameters from an function, but this error keeps showing up Uncaught exception Unexpected value VEnumValue(TDynamic(null)), expected object I don’t really understand what this is, since I do…

---

## [Cpp error when compiling haxe code](https://community.haxe.org/t/cpp-error-when-compiling-haxe-code/4139)

<div class="topic-metadata">

**Author:** [@distantforest](https://community.haxe.org/u/distantforest)\
**Replies:** 1\
**Last updated:** [January 29, 2024, 2:08am UTC](https://community.haxe.org/t/cpp-error-when-compiling-haxe-code/4139 "2024-01-29T02:08:41Z")

</div>

Hi I’m trying to use raylib-hx (GitHub - foreignsasquatch/raylib-hx: Haxe bindings for raylib, a simple and easy-to-use library to learn videogame programming) it compiles to the hxcpp target: The code is straightforwar…

---

## [Hxcpp cross compilation MacOS to Linux](https://community.haxe.org/t/hxcpp-cross-compilation-macos-to-linux/4104)

<div class="topic-metadata">

**Author:** [@rainy](https://community.haxe.org/u/rainy)\
**Replies:** 0\
**Last updated:** [December 9, 2023, 5:19am UTC](https://community.haxe.org/t/hxcpp-cross-compilation-macos-to-linux/4104 "2023-12-09T05:19:02Z")

</div>

Introduction Recently, when I was looking for this answer, I encountered some problems, and the relevant documentation was also missing in HXCPP. I hope to leave the basic tutorial here. It is designed to help Mac user…

---

## [HXCPP Won't debug in VSCode](https://community.haxe.org/t/hxcpp-wont-debug-in-vscode/4070)

<div class="topic-metadata">

**Author:** [@Reghalt](https://community.haxe.org/u/Reghalt)\
**Replies:** 5\
**Last updated:** [November 4, 2023, 9:09pm UTC](https://community.haxe.org/t/hxcpp-wont-debug-in-vscode/4070 "2023-11-04T21:09:43Z")

</div>

Hey! So I have seen other people had this issue a while back but nothing they did worked for me. I am trying to run the HaxeRepro project on MacOS Ventura with VSCode 1.84.0. I am running the C++ launch config and I ha…

---

## [Anonymous Structure performance](https://community.haxe.org/t/anonymous-structure-performance/4031)

<div class="topic-metadata">

**Author:** [@ClintFlames](https://community.haxe.org/u/ClintFlames)\
**Replies:** 2\
**Last updated:** [September 2, 2023, 7:27am UTC](https://community.haxe.org/t/anonymous-structure-performance/4031 "2023-09-02T07:27:55Z")

</div>

I’m interested in performance when compiled in C++. So what would be best in these cases? function getPos() return \[x, y, z\]; function getPos2() return { x: x, y: y, z: z } var o = { xPos: 0, yPos: 0, zPos: 0 } var…

---

## [C & Rust --\> haxe transpilation ](https://community.haxe.org/t/c-rust-haxe-transpilation/4010)

<div class="topic-metadata">

**Author:** [@dev.lenn](https://community.haxe.org/u/dev.lenn)\
**Replies:** 2\
**Last updated:** [August 14, 2023, 5:09pm UTC](https://community.haxe.org/t/c-rust-haxe-transpilation/4010 "2023-08-14T17:09:53Z")

</div>

Hey, i think (i’m pretty sure) you can transpile C++ to haxe. Is there a way to transpile C to C++ or C drirectly to haxe? Same question for Rust: is there a way to transpile rust to haxe? Thx in advance Lenn

---

## [Functions related to encrypt and decrypt](https://community.haxe.org/t/functions-related-to-encrypt-and-decrypt/3987)

<div class="topic-metadata">

**Author:** [@ccpplinux](https://community.haxe.org/u/ccpplinux)\
**Replies:** 1\
**Last updated:** [July 3, 2023, 3:02am UTC](https://community.haxe.org/t/functions-related-to-encrypt-and-decrypt/3987 "2023-07-03T03:02:16Z")

</div>

Hi, Is there any function in Haxe using which I can encrypt and decrypt a string in my program? If yes then what is the name of that function? Please also send me their documentation details. Best Regards … Pankaj Kum…

---

## [Haxe Delegates 1.0.0 Release: Faster Type-Safe Function Types](https://community.haxe.org/t/haxe-delegates-1-0-0-release-faster-type-safe-function-types/3908)

<div class="topic-metadata">

**Author:** [@thispolo](https://community.haxe.org/u/thispolo)\
**Replies:** 0\
**Last updated:** [March 22, 2023, 9:30am UTC](https://community.haxe.org/t/haxe-delegates-1-0-0-release-faster-type-safe-function-types/3908 "2023-03-22T09:30:13Z")

</div>

Hi All, Following on from this topic I created several months ago (thanks life), I am happy to announce a first major release with a majority of the original problems fixed. You can find it here: Please feel free to …

---

## ["ssl network error" thrown during non-blocking sys.ssl.Socket handshake when compiled with -debug and -D HXCPP\_M64 on Windows](https://community.haxe.org/t/ssl-network-error-thrown-during-non-blocking-sys-ssl-socket-handshake-when-compiled-with-debug-and-d-hxcpp-m64-on-windows/3891)

<div class="topic-metadata">

**Author:** [@joshtynjala](https://community.haxe.org/u/joshtynjala)\
**Replies:** 0\
**Last updated:** [March 8, 2023, 4:51pm UTC](https://community.haxe.org/t/ssl-network-error-thrown-during-non-blocking-sys-ssl-socket-handshake-when-compiled-with-debug-and-d-hxcpp-m64-on-windows/3891 "2023-03-08T16:51:29Z")

</div>

Code to reproduce: import haxe.Timer; import haxe.io.Error; class Main { static function main() { var socket = new sys.ssl.Socket(); try { socket.setBlocking(false); socket.connect(new sys.net.Host("haxe.org…

---

## [Cannot open include file: ‘crtdbg.h’](https://community.haxe.org/t/cannot-open-include-file-crtdbg-h/3871)

<div class="topic-metadata">

**Author:** [@ruby15](https://community.haxe.org/u/ruby15)\
**Replies:** 0\
**Last updated:** [February 22, 2023, 11:05am UTC](https://community.haxe.org/t/cannot-open-include-file-crtdbg-h/3871 "2023-02-22T11:05:18Z")

</div>

Hey! I’m new and trying to learn Haxe. I’ve been trying to compile something for a while and whenever I try to I get this error: 1. C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.3013…

---

## [Use C LIbraries DLL](https://community.haxe.org/t/use-c-libraries-dll/3864)

<div class="topic-metadata">

**Author:** [@RinkaDev](https://community.haxe.org/u/RinkaDev)\
**Replies:** 2\
**Last updated:** [February 19, 2023, 2:47am UTC](https://community.haxe.org/t/use-c-libraries-dll/3864 "2023-02-19T02:47:13Z")

</div>

Hi, I have this folders: .vscode bin src Main.hx SDL2.dll build.hxml README.md I have this build.hxml: -cp src -D analyzer-optimize -cpp bin -main Main How can I use the SDL2.dll in Haxe?

---

## [sys.ssl.Socket broken in cpp build on macOS, unless -debug compiler option is included](https://community.haxe.org/t/sys-ssl-socket-broken-in-cpp-build-on-macos-unless-debug-compiler-option-is-included/3838)

<div class="topic-metadata">

**Author:** [@joshtynjala](https://community.haxe.org/u/joshtynjala)\
**Replies:** 7\
**Last updated:** [January 24, 2023, 8:43pm UTC](https://community.haxe.org/t/sys-ssl-socket-broken-in-cpp-build-on-macos-unless-debug-compiler-option-is-included/3838 "2023-01-24T20:43:18Z")

</div>

Simple code: class Main { static function main() { var socket = new sys.ssl.Socket(); socket.connect(new sys.net.Host("haxe.org"), 443); socket.handshake(); trace("handshake succeeded"); } } Debug build: hax…

---

## [A few questions regarding haxe.MainLoop](https://community.haxe.org/t/a-few-questions-regarding-haxe-mainloop/3762)

<div class="topic-metadata">

**Author:** [@ClosetMonkey](https://community.haxe.org/u/ClosetMonkey)\
**Replies:** 1\
**Last updated:** [November 13, 2022, 1:09am UTC](https://community.haxe.org/t/a-few-questions-regarding-haxe-mainloop/3762 "2022-11-13T01:09:14Z")

</div>

First off I’m new, haven’t even typed a single line of haxe yet. I’ve been digging a bit though and the first question I have regards haxe.MainLoop. I noticed that the libuv package at incorporates haxe.mainloop to some …

---

## [Haxe Injection 3.0.0 released -- A dependency container for Haxe](https://community.haxe.org/t/haxe-injection-3-0-0-released-a-dependency-container-for-haxe/3728)

<div class="topic-metadata">

**Author:** [@thispolo](https://community.haxe.org/u/thispolo)\
**Replies:** 0\
**Last updated:** [October 23, 2022, 1:05pm UTC](https://community.haxe.org/t/haxe-injection-3-0-0-released-a-dependency-container-for-haxe/3728 "2022-10-23T13:05:19Z")

</div>

Hi all, Just published the latest version of my dependency container for Haxe similar to the .NET container or Google’s Wire, creatively named Haxe-Injection: I have been using and developing this container as part of…

---

## [Compiler freezes](https://community.haxe.org/t/compiler-freezes/3727)

<div class="topic-metadata">

**Author:** [@Nawle](https://community.haxe.org/u/Nawle)\
**Replies:** 2\
**Last updated:** [October 20, 2022, 4:30pm UTC](https://community.haxe.org/t/compiler-freezes/3727 "2022-10-20T16:30:06Z")

</div>

A few weeks ago I changed the system architecture, but after that the compiler stopped working… The compiler just sits there doing nothing, it can go on for hours and there’s not even any progress any suggestion? I al…

---

## [Is it possible to detect DVDs inside haxe?](https://community.haxe.org/t/is-it-possible-to-detect-dvds-inside-haxe/3715)

<div class="topic-metadata">

**Author:** [@MemeHoovy](https://community.haxe.org/u/MemeHoovy)\
**Replies:** 2\
**Last updated:** [October 9, 2022, 5:40pm UTC](https://community.haxe.org/t/is-it-possible-to-detect-dvds-inside-haxe/3715 "2022-10-09T17:40:03Z")

</div>

A copy of Question: Is it possible to detect DVDs inside haxe? · Issue #10818 · HaxeFoundation/haxe · GitHub I’m helping a friend with their first haxelib GitHub - Joalor64GH/hxDVD: Based off of hxCodec, but better and…

[Next page](https://community.haxe.org/tag/haxe-cpp/3.md?match_all_tags=true&page=1&tags%5B%5D=haxe-cpp)
