I using hlc-compilerhttps://github.com/fal-works/hlc-compiler.
My command:
haxelib run hlc-compiler --srcDir bin --srcFile app.c --outFile redist/app.exe --hlcJsonFile hlc.json --hlLibDir C:/HaxeToolkit/hl --hlIncludeDir C:/HaxeToolkit/hl/include --copyRuntimeFiles --exFile C:/Windows/System32/dbghelp.dll --saveCmd redist/run_gcc.bat -w --relative --compiler gcc
and this command compiling c code to exe, but when i opened exe file i saw many green lines.
Maybe problem in include order libreries hxml file:
-cp src
-lib format
-lib hashlink
-lib heaps
-lib hlopenal
-lib hlsdl
-hl bin/app.c
-main Main