HeapsIO / hxbit

Haxe Binary serialization and network synchronization library
155 stars 30 forks source link

Signature mismatch due to DCE #65

Closed onehundredfeet closed 1 year ago

onehundredfeet commented 1 year ago

I have a client executable and a server executable. They both should have the same classes listed in 'registerClass'. I have added @:keep to all the classes but it still ignores them.

I have to add a dummy variable in the client for each of the missing classes in order for them to be included. Is there a better way to do this?

ncannasse commented 1 year ago

You need to make sure the classes are compiled by using --macro include("classpath")

Le mar. 7 mars 2023 à 21:29, Ryan Cleven @.***> a écrit :

I have a client executable and a server executable. They both should have the same classes listed in 'registerClass'. I have added @:keep to all the classes but it still ignores them.

I have to add a dummy variable in the client for each of the missing classes in order for them to be included. Is there a better way to do this?

— Reply to this email directly, view it on GitHub https://github.com/HeapsIO/hxbit/issues/65, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHZXQF7AFUR7ENIG72JJ63W26LBFANCNFSM6AAAAAAVS6EZGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

onehundredfeet commented 1 year ago

Thanks.