News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Installing Code::Blocks Windows XP SP3

Started by podoroges, May 24, 2020, 01:14:14 PM

Previous topic - Next topic

podoroges

Hello, I'm using Win XP 32bit, SP3.
I tried to install codeblocks-20.03mingw-32bit-setup.exe
Installation completed successfully, but on launch of codeblocks.exe there was an error:

The application has failed to start because api-ms-win-crt-string-l1-1-0.dll was not found.

Quick googling shows that Visual C++ Redistributable should be installed
I have installed vcredist_x86.exe from microsoft site, and get another error:

The procedure entry point _o__configure_narrow_argv could not be located.

I even performed complete reinstall my Win XP. After clean installation the error is the same.
Does that mean that Code::Blocks no longer support Win XP?
Could you help me, please?

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. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

podoroges

Dear Tim,

Thank you for your answer. I followed your advice, downloaded 7 files from
http://svn.code.sf.net/p/codeblocks/code/trunk/src/exchndl/win32/bin/
to codeblocks directory (5 of them were overwrited).

However, the error is the same, and codeblocks will not start.

LETARTARE

#3
You must use svn11196, not svn12091 !

@developpers
To avoid this recurring problem, could you modify the corresponding version in the repository ?
CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

podoroges

Dear LETARTARE,

It works, thank you!

For those, who experience similar problems.
Go to https://sourceforge.net/p/codeblocks/code/11196/tree/trunk/src/exchndl/win32/bin/
Download all 6 files. Place to Codebloks directory (overwrite will be required).
So, it still works with XP, such a relief!

phoenixlpd

Quote from: podoroges on May 24, 2020, 05:24:28 PM
Dear LETARTARE,

It works, thank you!

For those, who experience similar problems.
Go to https://sourceforge.net/p/codeblocks/code/11196/tree/trunk/src/exchndl/win32/bin/
Download all 6 files. Place to Codebloks directory (overwrite will be required).
So, it still works with XP, such a relief!

Thank you for putting the link and instruction in your post!    I have codeblocks up and running on my old XP laptop now.

Tim

Hello,

I'm using Win XP x64, SP2.

I can install codeblocks-20.03mingw-32bit-setup.exe  and add the files from

https://sourceforge.net/p/codeblocks/code/11196/tree/trunk/src/exchndl/win32/bin/

Then codeblocks works with "Win XP x64, SP2" and "Win XP 32bit, SP3"


If I install "codeblocks-20.03mingw-setup.exe" on "Win XP x64, SP2"  I get the usual error message:-

The application has failed to start because api-ms-win-crt-string-l1-1-0.dll was not found.

If I then add the files from:-  https://sourceforge.net/p/codeblocks/code/11196/tree/trunk/src/exchndl/win32/bin/

I get a new error message:- The application has failed to start because exchndl.dll was not found.

Because I am happy to use the 32bit version of codeblocks on my XP x64 I am not looking for a fix, but just
thought it would be useful to other users to have this behavior documented.

Thank you for the continued development of CodeBlocks.

Tim

Commaster

Quote from: Tim on August 03, 2021, 05:55:59 PM
If I install "codeblocks-20.03mingw-setup.exe" on "Win XP x64, SP2"
-snip-
If I then add the files from:-  https://sourceforge.net/p/codeblocks/code/11196/tree/trunk/src/exchndl/win32/bin/
Looks like you installed a 64bit Code::Blocks and fed it a 32bit exchndl. Please try the win64/bin/ folder right next to it.

Tim

Quote from: Commaster on August 03, 2021, 07:52:55 PM
Looks like you installed a 64bit Code::Blocks and fed it a 32bit exchndl. Please try the win64/bin/ folder right next to it.

Thanks for pointing that out, I'm amazed I didn't notice that myself, I should be grateful that I can still feed myself!

However, when I tried the 64bit files today, I received a new error message:-

"The procedure entry point Wow64GetThreadContext could not be located in the dynamic link library KERNEL32.dll"

Tim


Commaster

Quote from: Tim on August 05, 2021, 11:19:59 AM
"The procedure entry point Wow64GetThreadContext could not be located in the dynamic link library KERNEL32.dll"
Sadly this is a limitation of Win XP for 64 bit applications. This kernel API was introduced in Vista.

AndrewCot

The Wow64GetThreadContext is in the dbgcore.dll file. The dbgcore.dll  is refefnced in the dbghelp.dll.

Looks like you may have used the latest files. They the x64 files from:
    https://sourceforge.net/p/codeblocks/code/11196/tree/trunk/src/exchndl/win64/bin/

The dbghelp.dll. in the directory above does not reference the dbgcore.dll  and as such does not require it and therefore the Wow64GetThreadContext error should not occur.

Can you please post if this is okay as if it does work then I will see if I can do something in the installers I have been working on to address this if it is even possible.

AndrewCot

@Commaster. I have updated my unofficial x64 NSIS only installer that you can read up about on the following thread https://forums.next.codeblocks.org/index.php/topic,24592.0.html to include changes specifically for for Win XP that should if it works as programmed will install the correct files for x64 XP that I downloaded from the https://sourceforge.net/p/codeblocks/code/11196/tree/trunk/src/exchndl/win64/bin/ directory.

If you do try the x64 NSIS installer and it works or not could you post in the https://forums.next.codeblocks.org/index.php/topic,24592.0.html how it went.

Commaster

Quote from: AndrewCot on August 06, 2021, 08:51:58 AM
@Commaster. I have updated my unofficial x64 NSIS only installer that you can read up about on the following thread https://forums.next.codeblocks.org/index.php/topic,24592.0.html to include changes specifically for for Win XP that should if it works as programmed will install the correct files for x64 XP that I downloaded from the https://sourceforge.net/p/codeblocks/code/11196/tree/trunk/src/exchndl/win64/bin/ directory.

If you do try the x64 NSIS installer and it works or not could you post in the https://forums.next.codeblocks.org/index.php/topic,24592.0.html how it went.
I think you mean @Tim, cause I don't have a Win XP x64, just using google  :)

Tim

@AndrewCot

I've just tried the files at:-  https://sourceforge.net/p/codeblocks/code/11196/tree/trunk/src/exchndl/win64/bin/

Unfortunately Code::blocks started up with the same error of:-

"The procedure entry point Wow64GetThreadContext could not be located in the dynamic link library KERNEL32.dll"

Please don't try too hard on my account, I'm fine using the 32bit version, That said I will continue to test any fixes you suggest. I don't want to wear out my welcome, as I have some more pressing questions to ask in the near future, as soon as I have educated myself enough to ask a sensible question and understand the answer.

Regards... Tim

AndrewCot

@tim. I have grabbed the Windows XP 32 and 64 bit ISO files from https://archive.org . I then copied a script I use to do an unattended Virtualbox guest install of Linux and modified it to install  Windows XP 32 and 64 bit OS's as it's a lot faster and I do not need to do anything apart from run the batch file as it's fully automated and I end up with a working Windows guest.

I have successfully installed the NSIS 32 bit installer on XP x86 and x64 and was able to run C::B without and errors popping up.

I did not get the x64 C::B build to run on Windows XP x64 SP2. I get a "The procedure entry point _wassert could not be located in the dynamic link library msvcrt.dll." pop up error. The msvcrt.dll is 7.0.3790 and I cannot find an update for XP x64. I traced the change in MinGW-64 to 2013 when the _wassert was added, so it's not like you can go back a few years to a compiler that does not include it and build C::B.

Looks like the work around is to use the C::B 32 bit version, unless you can find a later msvcrt.dll that works and there are no more issues.