HaxeFoundation / hashlink

A virtual machine for Haxe
https://hashlink.haxe.org/
MIT License
813 stars 158 forks source link

Compile Problem HL/C #716

Open barisyild opened 1 month ago

barisyild commented 1 month ago

Haxe Code: https://github.com/boorik/smartfox-haxe-client/blob/d7a10b57dc389bef19eab7508480cbd9df4739d4/com/smartfoxserver/v2/SmartFox.hx#L939

https://github.com/boorik/smartfox-haxe-client/blob/d7a10b57dc389bef19eab7508480cbd9df4739d4/com/smartfoxserver/v2/core/SFSEvent.hx#L54

C Output:

r13 = (com__smartfoxserver__v2__core__$SFSEvent)g$da560e3;
r7 = r13->HANDSHAKE;

Error:

Export/hl/obj\com/smartfoxserver/v2/SmartFox.c(351): error C2037: left of 'HANDSHAKE' specifies undefined struct/union '_com__smartfoxserver__v2__core__$SFSEvent'
yuxiaomao commented 1 month ago

Could you provide a minimal example?

barisyild commented 1 month ago

Could you provide a minimal example?

The library link is already above.