jcward / hxtelemetry

Haxe Telemetry Generator for hxScout
MIT License
61 stars 12 forks source link

Compile fails /w -dce full (WRT compile_fails_without_this_function_definition) #34

Closed ruby0x1 closed 8 years ago

ruby0x1 commented 8 years ago

This was still failing for me until I added @:keep to the CppHxTelemetry class itself.

jcward commented 8 years ago

Thanks for the feedback, @underscorediscovery!

ruby0x1 commented 8 years ago

Looking at this closer, since I ran into it in my own code: The issue relates to your cpp code using Bytes without including the Bytes definition.

In other words, you're missing this line. #include <haxe/io/Bytes.h>

Add it at inside your inline cpp or using the meta for cppFileHeader or similar and you should be good.