wxUiEditor icon indicating copy to clipboard operation
wxUiEditor copied to clipboard

Bug: Linking error due to one or more multiply defined symbols found for wxueImage() function

Open rossanoparis opened this issue 1 year ago • 17 comments

Description:

I have a solution where two distinct wxUiEditor projects are involved, even though I don't think two distinct projects matter. Anyway, these two projects generate the function wxImage wxueImage(const unsigned char* data, size_t size_data) into two different cpp files.

This leads in a linking error ... image

image

In my opinion the function wxueImage should be generated using the class name as its prefix; in my case: wxImage wxhKeyDialogDesigner_wxueImage(const unsigned char* data, size_t size_data) wxImage CKeyboardDesigner_wxueImage(const unsigned char* data, size_t size_data)

or as it was before, the function should be created as an inline member inline wxImage wxueImage(const unsigned char* data, size_t size_data)

rossanoparis avatar Dec 04 '23 13:12 rossanoparis