ValueType name conflict with CFFI.h and std Type.hx

22 views
Skip to first unread message

Rui Campos

unread,
Jun 3, 2014, 5:54:23 AM6/3/14
to haxe...@googlegroups.com
Hey,

I ran into a weird problem. I'm getting this error:
include/Type.h:9:19: error: typedef redefinition with different types ('hx::ObjectPtr<ValueType_obj>' vs 'ValueType')
HX_DECLARE_CLASS0
(ValueType)
(...)/hxcpp/include/hx/CFFI.h:68:6: note: previous definition is here
enum ValueType


I solved this by simply changing the enum ValueType in CFFI.h for enum _ValueType. 

But this seems like a hack, so I'm wondering why I'm getting the error in the first place. I'm trying to integrate munit with a Lime project, and I started getting this error because munit does something that uses the Type.hx in an assert method. And to add to the confusion, I don't get the error if I don't use Lime... 

Any idea?

Thanks!

Reply all
Reply to author
Forward
0 new messages