Discussion:
3.0.x versions compatibility
Fulvio Senore
2014-10-19 20:57:29 UTC
Permalink
I have read that there is binary compatibility among 3.0.x versions.

Does it mean that wxWidgets include files do not change with new
versions, except for possibly adding new definitions (for example new
classes)?

I statically link a couple of wxCode projects in a large program. If I
compile the wxCode library files with 3.0.1 can I use those libraries
with 3.0.2 or do I need to rebuild the libraries with 3.0.2?

Thanks in advance.

Fulvio Senore
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Bryan Petty
2014-10-19 21:08:39 UTC
Permalink
Post by Fulvio Senore
I have read that there is binary compatibility among 3.0.x versions.
Does it mean that wxWidgets include files do not change with new versions,
except for possibly adding new definitions (for example new classes)?
Correct, as long as it's in the 3.0.x series.
Post by Fulvio Senore
I statically link a couple of wxCode projects in a large program. If I
compile the wxCode library files with 3.0.1 can I use those libraries with
3.0.2 or do I need to rebuild the libraries with 3.0.2?
This is only relevant with dynamically linked libraries. Statically
linking in the new version implies that you are rebuilding a new
executable.
--
Regards,
Bryan Petty
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Fulvio Senore
2014-10-20 13:32:27 UTC
Permalink
Post by Bryan Petty
Post by Fulvio Senore
I statically link a couple of wxCode projects in a large program. If I
compile the wxCode library files with 3.0.1 can I use those libraries with
3.0.2 or do I need to rebuild the libraries with 3.0.2?
This is only relevant with dynamically linked libraries. Statically
linking in the new version implies that you are rebuilding a new
executable.
Sorry if I do not understand, or maybe I have not been clear enough.
When I build a wxCode library I must compile it together with a version
of wxWidgets. So at the moment I have built wxPdfDocument and wxEmail
against wxWidgets 3.0.1 and I have created two .lib (or .a) files. Then
I link those files with my program, compiled with wxWidgets 3.0.1.

If I update to wxWigets 3.0.2 and I compile my program with it, can I
safely link it with the wxCode libraries created previously with 3.0.1
or must I rebuild also the wxCode libraries compiling them with 3.0.2?

It looks like I can use the older libraries, but it would be nice to be
sure. Not having to rebuild the libraries under three OSes would save me
some time.

Thanks in advance.

Fulvio Senore
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Bryan Petty
2014-10-20 18:32:59 UTC
Permalink
Sorry if I do not understand, or maybe I have not been clear enough. When I
build a wxCode library I must compile it together with a version of
wxWidgets. So at the moment I have built wxPdfDocument and wxEmail against
wxWidgets 3.0.1 and I have created two .lib (or .a) files. Then I link those
files with my program, compiled with wxWidgets 3.0.1.
If I update to wxWigets 3.0.2 and I compile my program with it, can I safely
link it with the wxCode libraries created previously with 3.0.1 or must I
rebuild also the wxCode libraries compiling them with 3.0.2?
Ah, I see. As long as you're still linking wxWidgets itself
dynamically, I'm pretty sure this works fine as well, but maybe
someone else knows better.
--
Regards,
Bryan Petty
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...