Author Topic: to which compiler should we step up to bundle with CB  (Read 1396 times)

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1365
Re: to which compiler should we step up to bundle with CB
« Reply #15 on: May 22, 2023, 08:01:51 pm »
There are a lot of users (and potential users) that still use W7 (even XP). In the company I work for about 80 % of the OS are W7-64, there are one XP and one W7-32, only a few are W10.

  - If you compile next release using the UCRT compiler they will have problems, unless the installer takes care of the needed MSW update.
  - If you bundle the UCRT compiler, they will need to install the MSW update when deploying their software to pre-W10 systems.

IMHO, MSVCRT will be with us many years.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5429
Re: to which compiler should we step up to bundle with CB
« Reply #16 on: May 22, 2023, 09:09:54 pm »
https://support.microsoft.com/en-us/topic/update-for-universal-c-runtime-in-windows-c0514201-7fe6-95a3-b0a5-287930f3560c

 seems this works to for Win 7 (even that horrible Vista), only XP is out of the picture, which I really think is ok, we should drop old stuff some day.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1365
Re: to which compiler should we step up to bundle with CB
« Reply #17 on: May 23, 2023, 08:40:16 am »
Also, whatever compiler is chosen must be properly detected. 20.03 had problems detecting the bundled compiler.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5429
Re: to which compiler should we step up to bundle with CB
« Reply #18 on: May 23, 2023, 11:18:45 pm »
currently nightly detected it without issues for me.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5784
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: to which compiler should we step up to bundle with CB
« Reply #19 on: May 24, 2023, 03:16:50 am »
For me, I'm still using GCC with MSVCRT runtime. It works fine under Win7 and Win10. I haven't see someone using UCRT under Win7 before.
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 MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9673
Re: to which compiler should we step up to bundle with CB
« Reply #20 on: May 25, 2023, 03:02:47 pm »
anyone any epxerience with this one, looks very promising : https://winlibs.com/
This is currently also my favourite compiler suite. However, the last version that was able to compile everything I have a need for was:
gcc-10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2
...but I will try version 13 - seems this might be a good one if it compiles wx32, indeed.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline nenin

  • Almost regular
  • **
  • Posts: 156
Re: to which compiler should we step up to bundle with CB
« Reply #21 on: May 29, 2023, 09:23:06 am »
GCC 13 is important step for MinGW-w64 because it should support native Win32 threads. At least I can run simple test from the box.
Nixman just published GCC 13.1:  https://github.com/niXman/mingw-builds-binaries/releases  - it is kind of further development of the current 8.1.

Offline nenin

  • Almost regular
  • **
  • Posts: 156
Re: to which compiler should we step up to bundle with CB
« Reply #22 on: May 29, 2023, 09:29:24 am »
I haven't see someone using UCRT under Win7 before.
It is me.  :)
I did it also on XP, with moderate success. 
By any way better to install UCRT if possible, even if soft is linked against MSVCRT.