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
2
votes
0 answers

Can't compile with hxcpp when function argument is uint8_t

I'm trying to compile a native library with hxcpp but i'm getting this error: test.cpp:15:16: error: no matching function for call to 'foo' DEFINE_PRIME1v(foo); ^~~ /media/Archivos/Lib/haxe/hxcpp/4,0,4/include/hx/CFFIPrime.h:603:41:…
Daniel P.
  • 92
  • 1
  • 7
2
votes
0 answers

haxe C++ externs with template and enum

I have been trying to figure out how to create haxe externs for c++ libraries, and have been trying to get some classes from themispp working, but I'm a bit confused. I linked a haxelib dev directory to the themis src directory, to make adding it to…
ediblebird
  • 59
  • 5
2
votes
0 answers

Lime 5.2.1 / Android 4.3 : dlopen fails on stpcpy

I'm trying to build an empty HaxePunk project for Android to test the build chain, and while I'm never getting any error, all my attemps have crashed at run time with the same error message : Error: dlopen failed: cannot locate symbol "stpcpy"…
Matrefeytontias
  • 592
  • 1
  • 4
  • 13
2
votes
1 answer

How to make FlashDevelop show line error and where it happened with Haxe?

I've been using Haxe for a while and I'm debuging with the Windows target (OpenFL). When I put a try/catch somewhere it just says for example "Null object reference" - it doesn't say the line number and the class, so I have to keep putting traces to…
Thiago Sabin
  • 137
  • 1
  • 12
2
votes
2 answers

Haxe / hscript - Prevent exposing certain methods to scripts

So, I've created "interface class" with all static methods, which I want to expose to hscript scripts. It looks like this: package com.application.interfaces.Terrain; import com.application.TerrainCore class Terrain { private static var…
wildfireheart
  • 373
  • 2
  • 4
  • 13
2
votes
1 answer

Is there any algorithm for turning simple Haxe code into C/C++ code files?

I have simple Haxe app like class Main { public static function main() { trace("hello world"); } } I know how to compile such app for windows (not as SWF but as app from pure C\C++ )(and you can see how here but be worned thay…
Rella
  • 65,003
  • 109
  • 363
  • 636
2
votes
2 answers

Accessing flash package in Munit with openfl

I've transitioned my project from NME to Openfl which runs beautifully, but when trying to run munit I receive the error... "You cannot access the flash package while targeting cpp". How do I get around this? Is this an hxcpp problem or Munit?
Tom
  • 1,610
  • 1
  • 15
  • 19
2
votes
2 answers

Haxe - Flash project compiles fine, but won't compile using hxcpp

In summary, I think my question is this: How can I force hxcpp to compile haxe code for Flash 8 ? Here's where I'm at. I'm new to haxe, and am trying to get a sample from here: http://tilestudio.sourceforge.net/flash/Demo.html to compile using…
Brad Parks
  • 66,836
  • 64
  • 257
  • 336
1
vote
2 answers

How to include libsqlite3 in my Haxe/hxcpp build?

I have a very simple test put together to include SQLite3 in my Haxe build (I know it has SQLite built in, but this issue doesn't just apply here). It looks like so: @:include("sqlite3.h") @:buildXml('
Alastair
  • 5,894
  • 7
  • 34
  • 61
1
vote
1 answer

Luxe giving errors when building to windows target

I have been trying to build luxe with flow to windows target, and it has been giving me errors. I have tried building with '--arch 64' and '--arch 32' and it gives the same result. I have also installed hxcpp (just putting that out there so that you…
firt
  • 65
  • 1
  • 5
1
vote
1 answer

How can I use simple c++ code in Haxe Project?

I have a class in cpp like: class Foo{ private: int x; public: Foo(){x = 0;} int incr(); }; int Foo::incr(){ x++; return x; } In any .hx file, I want to use Foo class which is defined in cpp like that: var number:Int; // Some…
Enes F.
  • 406
  • 6
  • 17
1
vote
1 answer

hxcpp how to catch a C++ segmentation fault?

I am writing a command line tool in haxe (a mini lisp calculator :D) at this point of time in the project I cannot prevent the user to make an invalid call to a nonexisting function or use false arguments (it would require additional wrappers), so I…
1
vote
0 answers

Start windowed program from HXCPP CLI tool

I'm trying to open a windowed program from within a HXCPP command line app and I can't get it to work. At the moment I'm only trying to get this to work on Windows. Part of the problem seems to be that the program is in the Program Files directory…
tbyrne.org
  • 11
  • 1
1
vote
1 answer

Haxe: rebuild hxcpp failed with Error: Could not find build target "std"

Trying to rebuild hxcpp failed with the cryptic error message: Error: Could not find build target "std"
Jeff Ward
  • 16,563
  • 6
  • 48
  • 57
1
vote
1 answer

Haxe (hxcpp) – Path relative to executable path

Say I have following file structure of my application: Data/prefs.ini executable.exe How can I open prefs.ini providing relative path to it from executable.exe is always the same (known at compile time)? Or how can I get absolute path of…
wildfireheart
  • 373
  • 2
  • 4
  • 13