Structure already declared in resident file 6.20b2

Just starting out? Need help? Post your questions and find answers here.
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Structure already declared in resident file 6.20b2

Post 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?
User avatar
Bisonte
Addict
Addict
Posts: 1320
Joined: Tue Oct 09, 2007 2:15 am

Re: Structure already declared in resident file 6.20b2

Post 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 !
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Structure already declared in resident file 6.20b2

Post 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
User avatar
mk-soft
Always Here
Always Here
Posts: 6318
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Structure already declared in resident file 6.20b2

Post by mk-soft »

From time to time, purebasic also adds missing api structures.
Maybe it's one that has now been added.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
idle
Always Here
Always Here
Posts: 6026
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Structure already declared in resident file 6.20b2

Post 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.
Post Reply