# C++ support 2024?

**URL:** <https://forum.defold.com/t/c-support-2024/78352>\
**Category:** Questions\
**Created:** [October 4, 2024, 8:31pm UTC](https://forum.defold.com/t/c-support-2024/78352 "2024-10-04T20:31:30Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![exdev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/exdev/32/37648_2.png) [@exdev](https://forum.defold.com/u/exdev)\
**Post date:** [October 4, 2024, 8:31pm UTC](https://forum.defold.com/t/c-support-2024/78352/1 "2024-10-04T20:31:30Z")

</div>

Hello all, have a nice day!

Long time, no post, sorry. I just wanted to ask about the current C++ support state.  
As stated here, some C++ support was in the road plan, has been any changes lately?

> [@Implement C# Language Support in Defold Engine](https://forum.defold.com/t/implement-c-language-support-in-defold-engine/74305/10):
>
> I just want to point out that although we do use C++, it is only for a few features. All the code is very C-like. And we don’t want to start doing OOP in the engine, or expose that as api’s to the users. As for using C/C++, it isn’t really scripting anymore, but just regular plugins, and the turnaround times for building would be quite annoying. And we wouldn’t want the users to have to install SDK’s locally to compile for their desktop platform (we don’t want to increase the Defold editor size…

I come from working with Unreal and Unity and the thing I prefer the most from Unreal compared to Unity is the ability to use C++ and go from gameplay code to engine code in one breakpoint, I admit this is not the normal workflow, but when you really need it, it can save you a lot of time. Considering the documentation of such behemoth of engine sometimes is not updated or even exists.

Last year I checked Defold, all gameplay was still made in Lua, and unfortunately for big projects using non typed languages is a no-no for me. Also the workflow involved online servers for building. I found it was possible to have local servers but I was not able to made it work quickly and gave up.

Are there still plans to work on this? I’d like a workflow that would be able to run the whole project from the IDE, it would be great to have.

Best regards  
Laurens

---

<div class="post-metadata">

**Author:** ![Chung\_Xa](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/chung_xa/32/34470_2.png) [@Chung\_Xa](https://forum.defold.com/u/Chung_Xa)\
**Post date:** [October 5, 2024, 4:01am UTC](https://forum.defold.com/t/c-support-2024/78352/2 "2024-10-05T04:01:53Z")

</div>

you mean C#?

---

<div class="post-metadata">

**Author:** ![GooseSwanson](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gooseswanson/32/5844_2.png) [@GooseSwanson](https://forum.defold.com/u/GooseSwanson)\
**Post date:** [October 5, 2024, 7:30am UTC](https://forum.defold.com/t/c-support-2024/78352/3 "2024-10-05T07:30:01Z")

</div>

They are working on it. There are a few GitHub issues that track progress. JCash might be able to give an idea of how much work/time is left.

[https://github.com/defold/defold/issues/9122](https://github.com/defold/defold/issues/9122)

[https://github.com/defold/defold/issues/8929](https://github.com/defold/defold/issues/8929)

Since the C++ and C# support are connected, you may find this one interesting too:

[https://github.com/defold/defold/issues/8931](https://github.com/defold/defold/issues/8931)

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [October 5, 2024, 7:43am UTC](https://forum.defold.com/t/c-support-2024/78352/4 "2024-10-05T07:43:23Z")

</div>

Yes, the task(s) haven’t been as fast going as we’d have liked.  
Currrently we have two initiatives:

- Add more functionality to our C++ sdk
- Add a C# api as well.  
(And then going back and forth between the two, adding more functions)

We’re currently at the stage where we’re trying to build C# for WIndows on a LInux machine (Who could have known it would be an issue…).  
Once that’s fixed, I hope we can pick up the pace again.

I’d also like to point out that it’s not scripting, it’s writing and compiling native code, and building on a build server. Turnaround times _will_ increase.

I also want to mention our new [Teal extension](https://github.com/defold/extension-teal), that let’s you write typed Lua.

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [October 5, 2024, 9:30am UTC](https://forum.defold.com/t/c-support-2024/78352/5 "2024-10-05T09:30:28Z")

</div>

> [@exdev](#):
>
> I’d like a workflow that would be able to run the whole project from the IDE, it would be great to have.

As I understand, you are talking about a workflow where you open the engine code in an IDE, start writing your logic in C++ using the same IDE, and then compile it all together? If so, no, we don’t have plans for this.

It will still be our extender server that builds your C++ code and links it with the engine.

> [@exdev](#):
>
> Last year I checked Defold, all gameplay was still made in Lua, and unfortunately for big projects using non typed languages is a no-no for me. Also the workflow involved online servers for building. I found it was possible to have local servers but I was not able to made it work quickly and gave up.

If you checked the setup of a local extender last year, I recommend you take a look at our new setup, which was released last month.

We now have a container registry with ready-to-use Docker images, and the installation process for a local extender should be much easier! Please take a look at this forum post: [Big build server improvements!](https://forum.defold.com/t/big-build-server-improvements/78244)

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [October 5, 2024, 1:04pm UTC](https://forum.defold.com/t/c-support-2024/78352/6 "2024-10-05T13:04:53Z")

</div>

There is an example here of recreating the sidescroller example using C++ if you want to get a feel for how it works to write C++ game logic in Defold:

[https://github.com/JCash/cpp-side-scroller](https://github.com/JCash/cpp-side-scroller)

---

<div class="post-metadata">

**Author:** ![ThinkNathan](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/thinknathan/32/32599_2.png) [@ThinkNathan](https://forum.defold.com/u/ThinkNathan)\
**Post date:** [October 5, 2024, 5:45pm UTC](https://forum.defold.com/t/c-support-2024/78352/7 "2024-10-05T17:45:34Z")

</div>

On the scripting side, in addition to official support for Teal, there’s also community-supported [TypeScript](https://ts-defold.dev/) and [Haxe](https://github.com/hxdefold/hxdefold).

---

<div class="post-metadata">

**Author:** ![exdev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/exdev/32/37648_2.png) [@exdev](https://forum.defold.com/u/exdev)\
**Post date:** [October 7, 2024, 3:31pm UTC](https://forum.defold.com/t/c-support-2024/78352/8 "2024-10-07T15:31:01Z")

</div>

thank you! I’ll check it

---

<div class="post-metadata">

**Author:** ![exdev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/exdev/32/37648_2.png) [@exdev](https://forum.defold.com/u/exdev)\
**Post date:** [October 7, 2024, 3:32pm UTC](https://forum.defold.com/t/c-support-2024/78352/9 "2024-10-07T15:32:06Z")

</div>

hi @Mathias_Westerdahl  
thanks for the heads up!
