Author Topic: Installation Problems on Machine Running Windows XP Pro  (Read 364 times)

Offline JoeH

  • Single posting newcomer
  • *
  • Posts: 7
Installation Problems on Machine Running Windows XP Pro
« on: October 10, 2025, 05:58:47 am »
I want to install Code::Blocks on my old laptop computer.  It is a 32 bit machine using Windows XP Pro version 2002 with Service Pack 3.  I have attempted to install Code::Blocks 25.03.  The install file is Code::Blocks-25.03mingw-setup.exe downloaded from SourceForge.  The program installs successfully using all the defaults, but fails to execute.  I get a error message stating the "api-ms-win-crt-convert-l1-1-0.dll" could not be found.  I tried to use a copy of the dll from a couple of other sources that I found, but had no success.  I got a different error message stating that the "ucrtbase.mbrtowc" entry point could not be found in the dll when using either of the two files.

Moved on to plan B.  I downloaded a copy Code::Blocks-20.03mingw-setup.exe.  This version also installed successfully but would not execute correctly.  The error message stated that the program "was not a valid Win32 application".

Plan C.  I searched this forum for similar problems.  I found a topic with very similar issues.  The poster had finally installed Code::Blocks 17.12 and could successfully run Code::Blocks.  The best recommendations he received to get a later version of Code::Blocks operational was to copy pieces of version 17.12 over to a newer installation.  The poster said he could live with version 17.12.  I downloaded a copy of version 17.12 and have successfully installed and used it to build a "Hello World" test project.

My question is: Since the above topic has there been a better solution to this issue identified?  I really would like to get Code::Blocks 25.03 to work.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6103
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Installation Problems on Machine Running Windows XP Pro
« Reply #1 on: October 10, 2025, 07:16:05 am »
Maybe, this link has the 32bit Windows builds, see here: Re: The 04 October 2025 build (13739) is out.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7808
    • My Best Post
Re: Installation Problems on Machine Running Windows XP Pro
« Reply #2 on: October 10, 2025, 02:31:50 pm »
I suggest trying the link above and if it does not work install the UCRT
https://support.microsoft.com/en-us/topic/update-for-universal-c-runtime-in-windows-c0514201-7fe6-95a3-b0a5-287930f3560c

Oops, I do not see UCRT for Windows XP

I found this comment on a github site; so, maybe installing the MS Visual C Redist will install the UCRT for you.
Quote
On Windows XP, the VCRedist will deploy the UCRT itself.
« Last Edit: October 10, 2025, 03:47:22 pm by stahta01 »
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org