I am getting this when I build cpp tests using: haxe test_cpp.hxml
root@81b884a3ae9b:/shared/hxmath# haxe test_cpp.hxml
haxelib run hxcpp Build.xml haxe -Ddebug -DEXIT_ON_FINISH="1"
-DHXCPP_DEBUGGER="1" -Dhaxe3="1" -Dhaxe_ver="3.3"
-Dhxcpp_api_level="330" -Dnanotest="1.0.0" -Dsource-header="Generated
by Haxe 3.3.0" -I"/usr/lib/haxe/lib/nanotest/1,0,0/" -I"./"
-I"/usr/lib/haxe/extraLibs/" -I"/usr/local/lib/haxe/extraLibs/" -I""
-I"/usr/lib/haxe/std/cpp/_std/" -I"/usr/share/haxe/std/cpp/_std/"
-I"/usr/local/lib/haxe/std/cpp/_std/" -I"/usr/lib/haxe/std/"
-I"/usr/share/haxe/std/" -I"/usr/local/lib/haxe/std/"
- Compiling group 'haxe' with flags -Iinclude -c -fvisibility=hidden
-g -fpic -fPIC -DHX_LINUX -DHXCPP_DEBUG -DHXCPP_M64
-DHXCPP_VISIT_ALLOCS -DHXCPP_DEBUGGER -DHXCPP_API_LEVEL=330 -m64
-DHXCPP_M64 -I/hxcpp/include
- Compile: src/cpp/Lib.cpp
Error: While running :g++ -Iinclude -c -fvisibility=hidden -g -fpic
-fPIC -DHX_LINUX -DHXCPP_DEBUG -DHXCPP_M64 -DHXCPP_VISIT_ALLOCS
-DHXCPP_DEBUGGER -DHXCPP_API_LEVEL=330 -m64 -DHXCPP_M64
-I/hxcpp/include -x c++ -frtti -Wno-invalid-offsetof ./src/cpp/Lib.cpp
-o/shared/hxmath/bin/cpp/obj/linux64-debug/925f0305_Lib.o
In file included from /hxcpp/include/hxcpp.h:332:0,
from ./src/cpp/Lib.cpp:2:
/hxcpp/include/hx/Debug.h: In instantiation of 'static Dynamic
hx::StackVariable::GetOrSetFunction(bool, void*, Dynamic*) [with T =
const char*]':
/hxcpp/include/hx/Debug.h:191:27: required from
'hx::StackVariable::StackVariable(hx::StackVariable*&, bool, const
char*, T*) [with T = const char*]'
./src/cpp/Lib.cpp:61:1: required from here
/hxcpp/include/hx/Debug.h:252:25: error: conversion from 'Dynamic' to
'const char*' is ambiguous
* (T *) ptr = *dynamic;
^
/hxcpp/include/hx/Debug.h:252:25: note: candidates are:
In file included from /hxcpp/include/hxcpp.h:314:0,
from ./src/cpp/Lib.cpp:2:
/hxcpp/include/Dynamic.h:72:11: note: Dynamic::operator cpp::UInt64()
const <near match>
inline operator cpp::UInt64() const { return mPtr && mPtr->__ToInt64(); }
^
/hxcpp/include/Dynamic.h:72:11: note: no known conversion for
implicit 'this' parameter from 'cpp::UInt64 {aka long unsigned int}'
to 'const char*'
/hxcpp/include/Dynamic.h:71:11: note: Dynamic::operator cpp::Int64()
const <near match>
inline operator cpp::Int64() const { return mPtr && mPtr->__ToInt64(); }
^
/hxcpp/include/Dynamic.h:71:11: note: no known conversion for
implicit 'this' parameter from 'cpp::Int64 {aka long int}' to 'const
char*'
/hxcpp/include/Dynamic.h:69:11: note: Dynamic::operator signed char()
const <near match>
inline operator signed char () const { return mPtr ? mPtr->__ToInt() : 0; }
^
/hxcpp/include/Dynamic.h:69:11: note: no known conversion for
implicit 'this' parameter from 'signed char' to 'const char*'
/hxcpp/include/Dynamic.h:68:11: note: Dynamic::operator char() const
<near match>
inline operator char () const { return mPtr ? mPtr->__ToInt() : 0; }
^
/hxcpp/include/Dynamic.h:68:11: note: no known conversion for
implicit 'this' parameter from 'char' to 'const char*'
/hxcpp/include/Dynamic.h:67:11: note: Dynamic::operator unsigned
char() const <near match>
inline operator unsigned char () const { return mPtr ?
mPtr->__ToInt() : 0; }
^
/hxcpp/include/Dynamic.h:67:11: note: no known conversion for
implicit 'this' parameter from 'unsigned char' to 'const char*'
/hxcpp/include/Dynamic.h:66:11: note: Dynamic::operator short unsigned
int() const <near match>
inline operator unsigned short () const { return mPtr ?
mPtr->__ToInt() : 0; }
^
/hxcpp/include/Dynamic.h:66:11: note: no known conversion for
implicit 'this' parameter from 'short unsigned int' to 'const char*'
/hxcpp/include/Dynamic.h:65:11: note: Dynamic::operator short int()
const <near match>
inline operator short () const { return mPtr ? mPtr->__ToInt() : 0; }
^
/hxcpp/include/Dynamic.h:65:11: note: no known conversion for
implicit 'this' parameter from 'short int' to 'const char*'
/hxcpp/include/Dynamic.h:64:11: note: Dynamic::operator unsigned int()
const <near match>
inline operator unsigned int () const { return mPtr ? mPtr->__ToInt() : 0; }
^
/hxcpp/include/Dynamic.h:64:11: note: no known conversion for
implicit 'this' parameter from 'unsigned int' to 'const char*'
/hxcpp/include/Dynamic.h:63:11: note: Dynamic::operator int() const <near match>
inline operator int () const { return mPtr ? mPtr->__ToInt() : 0; }
^
/hxcpp/include/Dynamic.h:63:11: note: no known conversion for
implicit 'this' parameter from 'int' to 'const char*'
Error: Build failed