Page 1 of 1

Minimum version for OS4 sources

Posted: Sat Sep 10, 2011 11:46 am
by JosDuchIt
I did read that it is better to open explicitly all libraries rather than to rely on -lauto.

What is the reason for this, as obviously if you have a lot of libraries to open, you get a number of typing errors and subsequent loss of time?

Anyway i am trying to do this for the Gui4Cli source. This means i think, that i have to identify for each library the minimum version. In examples i found values 50L and 52L.
Do all system libraries start with 50L for OS4.0 ? Are higher values systematic the same for update1, 2, 3?
If not what is the recommended way to handle this?

Re: Minimum version for OS4 sources

Posted: Sat Sep 10, 2011 2:39 pm
by broadblues
There's no need to specify a minimum version for a library unless you need a specific functionailty intriduced at such a version.

Usualy the autodocs specify where a minimum version is required for agiven library function, or at what version the behaviour changes.

I think the disadvantge of using -lauto is that there is no minimum version control when you need it.

Re: Minimum version for OS4 sources

Posted: Sat Sep 10, 2011 2:46 pm
by ZeroG
JosDuchIt wrote:I did read that it is better to open explicitly all libraries rather than to rely on -lauto.

What is the reason for this, as obviously if you have a lot of libraries to open, you get a number of typing errors and subsequent loss of time?
  • no error messages for the user in case of a problem (missing library, etc.)
  • no version check
Anyway i am trying to do this for the Gui4Cli source. This means i think, that i have to identify for each library the minimum version. In examples i found values 50L and 52L.
Do all system libraries start with 50L for OS4.0 ? Are higher values systematic the same for update1, 2, 3?
If not what is the recommended way to handle this?
The lowest version to use is 52 (OS4.0 non-Beta) for system libraries, or 53 if it's a OS4.1 only app.

Re: Minimum version for OS4 sources

Posted: Sun Sep 11, 2011 8:09 am
by trixie
@JosDuchIt
ZeroG wrote:The lowest version to use is 52 (OS4.0 non-Beta) for system libraries, or 53 if it's a OS4.1 only app.
I think (cannot check at the moment) that in the original OS4.1 (pre-Update 1), some of the ReAction classes (texteditor.gadget?) are still at version 52. Looks like oversight to me.