From what I have read it seems that munit should generate an example project when the following commands are entered:
Massive Unit - Copyright 2013 Massive Interactive. Version 2.0.2
haxe -main TestMain -lib munit -lib hamcrest -cp src -cp test -swf-version 11 -swf build/as3_test.swf
haxe -main TestMain -lib munit -lib hamcrest -cp src -cp test -swf-version 8 -swf build/as2_test.swf
haxe -main TestMain -lib munit -lib hamcrest -cp src -cp test -js build/js_test.js
haxe -main TestMain -lib munit -lib hamcrest -cp src -cp test -neko build/neko_test.n
haxe -main TestMain -lib munit -lib hamcrest -cp src -cp test -cpp build/cpp_test
haxelib run hxcpp Build.xml haxe -Dhamcrest="1" -Dhaxe3="1" -Dhaxe_release="1" -Dhaxe_ver="3." -Dmconsole="1" -Dmcover="1" -Dmlib="1" -Dmunit="1"
Creating obj/darwin//__pch/haxe/hxcpp.h.gch...
g++ -Iinclude -c -fvisibility=hidden -O2 -I/usr/lib/haxe/lib/hxcpp/3,0,2//include -DHX_MACOS -m32 -DHXCPP_VISIT_ALLOCS -frtti -o obj/darwin//__pch/haxe/hxcpp.h.gch /usr/lib/haxe/lib/hxcpp/3,0,2//include/hxcpp.h
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hxcpp.h:14:20: error: typeinfo: No such file or directory
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hxcpp.h:15:20: error: stdint.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hxcpp.h:29:20: error: string.h: No such file or directory
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hxcpp.h:33:19: error: wchar.h: No such file or directory
In file included from /usr/lib/haxe/lib/hxcpp/3,0,2//include/hxcpp.h:193:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:205:21: error: algorithm: No such file or directory
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hxcpp.h:19: error: ‘int64_t’ does not name a type
In file included from /usr/lib/haxe/lib/hxcpp/3,0,2//include/hxcpp.h:185:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Object.h:59: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Object.h:59: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Object.h: In member function ‘void hx::ObjectPtr<O>::CastPtr(hx::Object*)’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Object.h:152: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/3,0,2//include/hxcpp.h:186:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hxString.h: At global scope:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hxString.h:20: error: declaration of ‘operator new’ as non-function
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hxString.h:20: error: expected ‘;’ before ‘(’ token
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hxString.h: In member function ‘int String::compare(const String&) const’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hxString.h:106: error: ‘strcmp’ was not declared in this scope
In file included from /usr/lib/haxe/lib/hxcpp/3,0,2//include/hxcpp.h:192:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create()’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Anon.h:43: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Anon.h: In static member function ‘static hx::ObjectPtr<hx::Anon_obj> hx::Anon_obj::Create(const Dynamic&)’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Anon.h:44: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Anon.h: In static member function ‘static Dynamic hx::Anon_obj::__CreateEmpty()’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Anon.h:46: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
In file included from /usr/lib/haxe/lib/hxcpp/3,0,2//include/hxcpp.h:193:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h: At global scope:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:85: error: ‘size_t’ does not name a type
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h: In member function ‘void Array_obj<ELEM_>::sort(Dynamic)’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:401: error: ‘stable_sort’ is not a member of ‘std’
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h: In member function ‘Dynamic Array_obj<ELEM_>::map(Dynamic)’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:619: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
In file included from /usr/lib/haxe/lib/hxcpp/3,0,2//include/hxcpp.h:194:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Class.h: In function ‘bool hx::TCanCast(hx::Object*)’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Class.h:154: error: must #include <typeinfo> before using typeid
In file included from /usr/lib/haxe/lib/hxcpp/3,0,2//include/hxcpp.h:201:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h: In static member function ‘static Array<T> Array_obj<ELEM_>::__new(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:504: instantiated from ‘Array<ELEM_>::Array(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Operators.h:251: instantiated from here
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:556: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::concat(Array<T>) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:412: instantiated from ‘Dynamic Array_obj<ELEM_>::__concat(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Boot.h:12: instantiated from here
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:567: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::copy() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:413: instantiated from ‘Dynamic Array_obj<ELEM_>::__copy() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Boot.h:12: instantiated from here
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:575: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:576: error: ‘memcpy’ was not declared in this scope
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h: In member function ‘Dynamic Array_obj<ELEM_>::iterator() [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:415: instantiated from ‘Dynamic Array_obj<ELEM_>::__iterator() [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Boot.h:12: instantiated from here
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:404: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::slice(int, Dynamic) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:422: instantiated from ‘Dynamic Array_obj<ELEM_>::__slice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Boot.h:12: instantiated from here
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:586: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::splice(int, int) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:423: instantiated from ‘Dynamic Array_obj<ELEM_>::__splice(const Dynamic&, const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Boot.h:12: instantiated from here
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:594: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h: In member function ‘Dynamic Array_obj<ELEM_>::map(Dynamic) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:427: instantiated from ‘Dynamic Array_obj<ELEM_>::__map(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Boot.h:12: instantiated from here
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:619: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h: In member function ‘Array<T> Array_obj<ELEM_>::filter(Dynamic) [with ELEM_ = Dynamic]’:
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:428: instantiated from ‘Dynamic Array_obj<ELEM_>::__filter(const Dynamic&) [with ELEM_ = Dynamic]’
/usr/lib/haxe/lib/hxcpp/3,0,2//include/hx/Boot.h:12: instantiated from here
/usr/lib/haxe/lib/hxcpp/3,0,2//include/Array.h:602: warning: no corresponding deallocation function for `void* operator new(long unsigned int)'
Called from ? line 1
Called from BuildTool.hx line 1529
Called from BuildTool.hx line 673
Called from a C function
Called from BuildTool.hx line 708
Called from BuildTool.hx line 842
Called from BuildTool.hx line 885
Called from BuildTool.hx line 194
Uncaught exception - Error creating pch: 1 - build cancelled
Error: Build failed
Error: Error compiling hxml for cpp
Target cpp /Users/macuser/Haxe/ExampleProject/build/cpp_test/
I can confirm that openfl is properly building projects for flash and mac targets. It just seems to be munit which is not working for me.