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
1
vote
1 answer

Timer in command-line application

Trying to create a simple command-line application in Haxe which has a ticking Timer, but it does not seem to work out; the Timer never actually starts 'ticking'. package; import haxe.Timer; class TimerCallback { private static inline var…
user2299169
1
vote
1 answer

Remove HX_STACK_LINE calls from hxcpp

I am unable to identify a compiler flag that would turn off all of the seemingly pointless (with production code) calls that are presumably mainly for tracing. --no-traces does not accomplish this. Calls like: HX_STACK_LINE HX_STACK_PUSH Perhaps…
MetaChrome
  • 3,210
  • 6
  • 31
  • 48
1
vote
1 answer

What does ret reinterpret_cast do?

#define HX_DEFINE_DYNAMIC_FUNC0(class,func,ret) \ Dynamic __##class##func(hx::Object *inObj) \ { \ ret reinterpret_cast(inObj)->func(); return Dynamic(); \ }; \ Dynamic class::func##_dyn() \ {\ return…
MetaChrome
  • 3,210
  • 6
  • 31
  • 48
0
votes
0 answers

How to use clang compiler with a haxe toolkit?

I want to build my haxe project with a clang compiler. I create the following "build.hxml" file: -lib hxcpp -cpp-compiler /usr/bin/clang++ -D linux -D STATICLIBPREFIX= -D HXCPP_CLANG -D HAXE_OUTPUT_PART=myproject -D HXCPP_API_LEVEL=400 -D…
nen777w
  • 87
  • 1
  • 1
  • 6
0
votes
1 answer

Convert a haxe project using hxcpp to python

I found an open source project in haxe using lime/openfl, msignal, and hxcpp. Problem is, I have never in my life used haxe before. But I use python all the time at work (although I couldnt say I am a master by any means). All information I can find…
0
votes
1 answer

Is there a way for hxcpp to cross compile with Java?

I am asking this question because I keep getting an error with NativeCFFI in a haxeflixel project (it's not my project) when I try to build Java with haxeflixel's lime, and I am wondering what I should do to make hxcpp cross compile with Java? A…
0
votes
0 answers

Error building C++ project in HaxeDevelop

I use HaxeDevelop 5.2 and Haxe 3.4.2. I tried to build simple Hello world app in HaxeDevelop. But failed. Here is the log: Running process: C:\Program Files (x86)\HaxeDevelop\Tools\fdbuild\fdbuild.exe "E:\temp\New Project14\New Project14.hxproj"…
ilya
  • 1,103
  • 14
  • 36
0
votes
0 answers

Haxe - error, when trying to serialize object after cast to parent type

I'm trying to do this: var player:Player = new Player(); // class Player extends PlayerCore var playerCore:PlayerCore = cast (player, PlayerCore); var playerStr:String = Serializer.run(playerCore); which compiles, but gives runtime…
wildfireheart
  • 373
  • 2
  • 4
  • 13
0
votes
1 answer

Error compiling HaxeUI app on El Capitan

I'm trying to compile a HaxeUI app on Mac OS with the latest version El Capitan. The list of Haxe libraries installed, with versions: $ haxelib list actuate: [1.8.6] box2d: [1.2.3] format: [3.2.1] haxeui-file-dialogs: [0.1.1] haxeui-rich-text:…
Jasveer
  • 209
  • 2
  • 8
0
votes
1 answer

Haxe / OpenFL compile fails with "Unknown identifier : cpp"

Working on an OpenFL project, I updated a bunch of relevant Haxe libraries (hxcpp, openfl, lime, etc) and started getting a weird Haxe compiler error. > lime test linux CFFIPointer.hx:55: characters 23-81 : Unknown identifier : cpp ... (tons more of…
Jeff Ward
  • 16,563
  • 6
  • 48
  • 57
0
votes
1 answer

MSVC environment variables not showing up in different terminals

I'm using Haxe's HXCPP to generate C++ code and compile it with Microsoft Visual Studio 2010 Express Edition. I'm following this guide and it asks you to run "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\vsvars32.bat" so that…
Nick ODell
  • 15,465
  • 3
  • 32
  • 66
1 2
3