Im not exactly sure how this works but it do....
Haxe file:
@:include("helloWorld.cpp")
@:native("cppClass")externclassCppClass{
@:native("cppClass::helloFromCpp")staticpublic function helloFromCpp():Void;}classMain{staticpublic function main(){
CppClass.helloFromCpp();}}
CPP file( called helloWorld.cpp):#includeclassGeeks{public:statichelloFromCpp(){
std::cout <<"hello from cpp!";}}