Compiler Exclude Lib

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Compiler Exclude Lib

Post by IdeasVacuum »

There are times when compilation halts because of a 'clash' with a lib, especially User Libs. For example, a function of identical name. This can happen if you have developed some apps using the lib, and later others using the lib's source code. It's not so straightforward to change all your apps so that they are all singing from the same song book as invariably there are always other things involved. So, a compiler option to specifically exclude a lib would be a nice solution. Perhaps someone is going to tell me that this can already be done?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
ebs
Enthusiast
Enthusiast
Posts: 557
Joined: Fri Apr 25, 2003 11:08 pm

Re: Compiler Exclude Lib

Post by ebs »

@IdeasVacuum,

If you are using gnozal's jaPBe instead of the standard PB IDE, he has a PureLib Manager tool.
It allows you to easily enable and disable user libraries to avoid the conflicts between library functions and source code.
Unfortunately, it doesn't work in the PB IDE. :(

Regards,
Eric
User avatar
Bisonte
Addict
Addict
Posts: 1305
Joined: Tue Oct 09, 2007 2:15 am

Re: Compiler Exclude Lib

Post by Bisonte »

ebs wrote:... PureLib Manager tool ... Unfortunately, it doesn't work in the PB IDE. :(
hmm I use it with the PB-IDE and I can easily enable/disable Userlibs with it....
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.)
ebs
Enthusiast
Enthusiast
Posts: 557
Joined: Fri Apr 25, 2003 11:08 pm

Re: Compiler Exclude Lib

Post by ebs »

Bisonte wrote:hmm I use it with the PB-IDE and I can easily enable/disable Userlibs with it....
That's good news! Gnozal's website makes it sound like it works only with jaPBe.

Regards,
Eric
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Compiler Exclude Lib

Post by IdeasVacuum »

Pure Lib Manager is a real gem - hats off to Gnozal! 8)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply