Page 1 of 1

Structure already declared in resident file 6.20b2

Posted: Tue Jan 14, 2025 7:35 am
by idle
windows x64
I'm getting an error "Structure already declared in resident file" for a structure in a module, shouldn't structures be Prefixed by the module name?

Re: Structure already declared in resident file 6.20b2

Posted: Tue Jan 14, 2025 7:51 am
by Bisonte
have you made some userlibs with the external tool from this forum that creates userlibs AND residents ?
Maybe you forget to delete the residents ... These residents are absolut global !

Re: Structure already declared in resident file 6.20b2

Posted: Tue Jan 14, 2025 7:59 am
by idle
Bisonte wrote: Tue Jan 14, 2025 7:51 am have you made some userlibs with the external tool from this forum that creates userlibs AND residents ?
Maybe you forget to delete the residents ... These residents are absolut global !
No not one I added, it does it with 6.03 as well. I normally prefix structures but his was an older code in a module, just thought it was weird

Re: Structure already declared in resident file 6.20b2

Posted: Tue Jan 14, 2025 6:21 pm
by mk-soft
From time to time, purebasic also adds missing api structures.
Maybe it's one that has now been added.

Re: Structure already declared in resident file 6.20b2

Posted: Tue Jan 14, 2025 6:54 pm
by idle
I'm sure it's been like that for ages but it's totally illogical I Declare a module foo and decade a structure bar to that module I expect it to be foo_bar not bar so it conflicts with an existing structure.