Questions tagged [hxcpp]

hxcpp is the runtime support for the C++ backend of the Haxe compiler.

hxcpp is the runtime support for the C++ backend of the Haxe compiler. This contains the headers, libraries and support code required to generate a fully compiled executable from haxe code.

41 questions
38
votes
2 answers

Running Haxe from iOS app – hxRunLibrary() error

For a client I've developed an iOS + Android app using Cordova (PhoneGap) for the user interface. Now, as an update to this app, I'm am attempting to add a game that was written in Haxe. Originally the game was written for the Flash target, but I've…
Splashdust
  • 787
  • 5
  • 8
8
votes
2 answers

What is cppia scripting?

I was just looking at the Change Log for Haxe 3.2.0-rc.2 and found this at the end of New features list: cpp : inititial implementation of cppia scripting Can anyone can tell me what this means? I can tell that it has something to do with C++, but…
Futago-za Ryuu
  • 147
  • 2
  • 9
7
votes
1 answer

How to create iOS- & OSX- library from Haxe and use it in native application?

I have an crossplatform implementation of own protocol, data-structures and logic written on Haxe. How I can build and use it in my enterprise-application (with native UI) for iOS and OSX?
Alex Koz.
  • 490
  • 8
  • 26
6
votes
1 answer

Array doesn't change when method inlined

This is part of my stack class. It works fine in flash, but in cpp/windows, the push method doesn't always work. I don't understand C++ well enough to understand why it could be inconsistent. var arr:Array; public var length(default,…
MSGhero
  • 411
  • 2
  • 7
6
votes
1 answer

Unable to compile NME for Android

Okay, so I'm trying to get an initial build of the NME sample files onto an Android device. I can build for platforms such as HTML5, Flash and Windows, but I can't get it onto Android - I always get errors back that say: Unable to find a javac…
James Ford
  • 1,543
  • 2
  • 15
  • 31
5
votes
1 answer

Compile Haxe to fully stripped cpp target?

How to compile Haxe code using cpp target that is fully stripped, no debug addons etc? What can be used except -D dce=full and --no-traces to compile fastest and/or smallest executable?
madneon
  • 537
  • 3
  • 17
5
votes
3 answers

How to get current time in milliseconds in Haxe?

I need a function that returns the local time in milliseconds on the CPP target. I tried Haxe's Date class, but Date.now() gives me the time in seconds.
Enes F.
  • 406
  • 6
  • 17
5
votes
1 answer

Creating a Haxe hxcpp wrapper for a C library

since a couples of days I am trying to write a Haxe hxcpp wrapper for linenoise which is programmed in C code; the library is very simple and the header also contains an extern C. I am following the snowkit linc macro template but I can't get a way…
5
votes
1 answer

OpenGL with Haxe C++?

I'm interested in converting to Haxe as my primary programming language, and it's been awesome so far, however one of my requirements is that I can use OpenGL 3.3 with the C++ target for some 3D game work. However, this seems to be an odd thing to…
toficofi
  • 583
  • 6
  • 24
4
votes
1 answer

Call method in object passed to C++ from Haxe

I'm creating an OpenFL extension for a mobile advertising SDK, and I'm having difficulty figuring out some CFFI stuff. Basically, I'm trying to pass a Haxe object to C++, and then call a method on that object from C++. The purpose of this is as an…
AlexRamallo
  • 637
  • 1
  • 5
  • 23
4
votes
1 answer

Haxe uncaught global exception handler

I am writing UI of an application using Haxe for CPP targets. I need to intercept haxe error/exceptions before it crashes the App. Below is an example of code which crashes the application: @:final private function callFoo(classA : IInterface) :…
Alien Geography
  • 383
  • 1
  • 2
  • 14
3
votes
1 answer

HXCPP Profiler won't create log file

I am using Haxe for a game and compiling for the C++ target using HXCPP. I am trying to get the built-in profiler to work (cpp.vm.Profiler), but I cannot get it to create a dump file. My code is as simple as that : if(Input.check(Key.P)) …
Matrefeytontias
  • 592
  • 1
  • 4
  • 13
3
votes
1 answer

Haxe - Create a C++ Stand-alone executable

I have written a haxe program that tries to communicate with a remote server. I was able to compile to the C++ target successfully. The executable runs just fine on my system. However, when I try to run the same on another windows box, it fails with…
Hells Guardian
  • 395
  • 1
  • 4
  • 16
3
votes
1 answer

Haxe – Proper way to implement Map with Int64 keys that can be serialized (native target)

I need to know, what would be proper way to implement Maps with 64 bit keys. There will not be so many items in them, I just need to use various bits of the key for various things with large enough address space and I need it to be very fast, so…
wildfireheart
  • 373
  • 2
  • 4
  • 13
2
votes
0 answers

HxCPP Add Include Paths and Linker Options

I'm trying to use an external C++ library in Haxe. I have an extern class with an @:include meta, but I can't figure out how to add the directory containing some headers to the HxCPP include path, or add linker options to add to the lbrary path and…
programmer
  • 743
  • 4
  • 10
1
2 3