@bmarkus:
( Sorry to say, but if your application strictly depends on a particular version it shows me a poorly designed application. )
Very true, sir !
But I still do not know how to code with a depricated and/or removed class / function / feature - if that perticular langusage stopped supporting the feature in its new release .
With the depricated item, we may work-around by using -depricated flag.
But what abt the removed functions / classes ?
In Java2 , distpatch() member of ActiveEvent class of java.awt.peer package from Java 1.1 was removed.
So is the case of checkAwtEventQueueAccess() , checkMemberAccess() , checkPropertyAccess() etc many members were removed from class RMISecurityManager of package java.rmi.
So is the case of java.security package of java 1.1
And imagining to alter 22K lines or 40K lines of code in diff 8 modules in the concerned application developed in Java 1.1 and its subsequesnt cross references to other exported classes of C++ wrappers etc - to port it to Java2 - is not a minor job for a poor programmer like me !
Off-cource, all I am talking abt above is refering to Win platform -as most of my time has gone developing on W2k, XP etc. Another thing , many clients are still reluctant to upgrade to XP - leave aside the Vista/W7 after experiencing the Vista fiasco !
Since C++ and Java classes undergo continuous revisions and modifications - the list of depricated / removed features from most of the languages continuously changes - even in Java2 !
( In general in a LINUX environment you can relatively freely change, update a certain library, application, etc. in the system without affecting others.
I'm running different LINUX servers in the last 10 years, including MANDRAKE, MANDRIVA, SuSE and CentOS. In their repo there is only one (the latest) version available. Updates are happening on the fly without disturbing the system normal operation. Even the 'big guys' do not keep older versions avaiilable. )
Since I am trying my hand in Linux Programming very lately ( which I have already disclosed on this forum else-where ), I hope you can guide me the work-around for the above situations with your good experience - like what to do to get around the removed class / function / a feature.
Should we supply the old library files with the application / will the app work with the new C++ / Java library - even if the feature is completely removed from the new release of that library ?
Kindly guide !
@Jason:
( I made a mistake trying to split this into it's own topic, and a post was lost. Sorry for the mistake, I did not intentionally delete your post. )
Its OK ! I know nobody will do such thing deliberately - unless some forum rules are violated !
( Oh, and gcc 3.x is less strict than gcc 4.x. Sometimes compiling old apps on 4.x will give errors. If it is a popular old app, there likely is a gcc-4.x patch for it to let it build. Arch, Crux, and Slackware repos will likely have a 4.x patch for older apps that are still around that need them. )
Thnks ! But presently ( in Linux ) - I am not porting / modifying any app developed by others. I just want some of my simple apps ( from Win ) to be re-structured as per the OS-requirement of Linux. So I was trying to compile some converted apps in GCC4.2.2 - and this input/output error stalled my progess. Acutually - :
cc -o app_name app.c
was refering to cc1 in the bin dire in GCC tree. But cc1 was reluctant to proceed further.
I had installed all the files - mentioned in compiletc.tcz mata ext from /2.x/tcz repo !
The same app runs ok when I use GCC3.x from /2.x/tce repo . I am clueless !
As per the GCC4.4.x info file guide lines - I avoided suing 4.4 - since my app is not that big and feature rich !
~ Pats