User forums > Help
Updating wxWidgets - Updating projects developed under a previous wx version
charles5577:
Hello,
My first time to post. I am a fairly experienced programmer: 40 years (student/engineer and not a developer) with the last 20 years using C++. Until several years ago with my work I used VC++ with MFC. I then started experimenting with CB and wxWidgets under debian. I then decided to try CB and wxWidgets under Windows 64 bit. This was somewhat of an informative experience but I got it working and have been ever since pleased with the results. Just a note: having used MFC made using wxWiggets easy, it was almost as easy as changing the letter C to wx. However, there are alot of advanges of using wxWidgets.
With Windows 10 - 64 bits I installed the Mingw compiler, CB and wxWidgets. I updated periodically and until recently was using:
Mingw-W64 7.3.0 (seh-rt_v5) with gcc 8.1.0
CB 17.12 (32 bit)
wxWidgets 3.1.2
I updated to the following:
Mingw-W64 7.3.0 (seh-rt_v5) with gcc 8.1.0
CB 20.03 (compiled from source)
wxWidgets 3.1.3 (compiled from source)
To do this I:
1. Compiled wxWidgets 3.1.3 (changing setup.h to use 2D graphics)
2. Modified CB 17.12 to use the wxWidgets 3.1.3 version
3. Compiled the CB 20.03 source code to get a 64 bit CB 20.03 using wxWidgets 3.13.
At this point all is good. I created a dll project and a Frame based project and they compiled and linked with the Frame based program running.
I then compiled and linked a couple of dll projects that were developed under wxWidgets 3.1.2. They compiled and linked.
Now comes the problem. I compiled and linked a Frame based project with my new cofiguration that was developed under wxWidgets 3.1.2. When I tried to run the project I got the error that "msw312u_gcc_cb.dll was not found". It should be looking for msw313u_gcc_cb.dll, ie. 313 rather than 312.
As I built, linked and ran a Frame based project under the new configuration I looked for the problem in
1. The CBP file of the project
2. The registry
3. The user directory files
Finally, I searched the internet extensively, no answer.
Question: How do I recompile, link, and run Frame projects developed under a previous version of wxWidgets using and updated version of wxWidgets?
As usual for programming, the answer is probably straight foward and I have probably missed something.
Any answer?
stahta01:
Did you do rebuild instead of build on the project?
If not, do so now and see if it fixes the problem.
If yes, please post the full rebuild log to check for places you failed to update.
Tim S.
stahta01:
Did you update the wxWidgets global variable inside Code::Blocks?
Settings -> Global variables
Tim S.
charles5577:
Thanks for the quick replies.
For the old project I did a clean and build. Just to make sure with you suggestion I did a rebuild: same result did not change to the new version dll.
For the Global Variables I have
wx : updated for 3.1.3
wx31_64 : updated for 3.1.3
I do not have a wxWidgets global variable.
I forgot to add in my first post. I updated the CBP file, changed all wxWidgets references of 3.1.2 to 3.1.3.
Thanks
charles5577:
Hi again,
Forgot to add that when you create a new wxWidgets project, the wizard asks for the wxWidgets directory location. For the old configuration it was the directory wxWidgets-3.1.2. Afterwards, there seems to be no way to reverse this.
Thanks again for the help
Navigation
[0] Message Index
[#] Next page
Go to full version