Pelles C forum

Pelles C => Announcements => Topic started by: Pelle on May 01, 2023, 05:15:49 PM

Title: Release Candidate #2 for version 12.00 now available
Post by: Pelle on May 01, 2023, 05:15:49 PM
Pelles C version 12.00 (Release Candidate #2) is now available for download:
http://www.smorgasbordet.com/pellesc/download.htm

Changes for RC2:

Hopefully the last release candidate, with a release soon following...

/Pelle
Title: Re: Release Candidate #2 for version 12.00 now available
Post by: Robert on May 01, 2023, 10:20:32 PM
RC2 install on Windows 11 64 bit, Controlled folder access blocked. See attached .pngs.

RC1 installs O.K.

Title: Re: Release Candidate #2 for version 12.00 now available
Post by: frankie on May 01, 2023, 10:48:23 PM
I had similar problem. In my case the error was the impossibility to create files in the program folder. Rebooting the PC let me install the compiler...
I forgot: OS Win10.
Title: Re: Release Candidate #2 for version 12.00 now available
Post by: MrBcx on May 01, 2023, 11:45:11 PM
I always install the Pelles C Compiler system to C:\Pellesc

I also exclude that folder from the Windows Defender scan list.

Release Candidate 2 installs and runs as expected for me.

Title: Re: Release Candidate #2 for version 12.00 now available
Post by: Pelle on May 02, 2023, 11:03:10 AM
It works fine here on Windows 10 with Firefox and installing to the default location, but I have dialed down the über-aggressive M$ security settings for years. The default policy seems to be (more or less) that if nothing can be installed, nothing bad can happen. This may make the computer secure, but also pretty useless.

There is no budget for a certificate for setup.exe, and placing everything in a ZIP file probably won't help much.
Title: Re: Release Candidate #2 for version 12.00 now available
Post by: frankie on May 02, 2023, 01:06:36 PM
It works fine here on Windows 10 with Firefox and installing to the default location, but I have dialed down the über-aggressive M$ security settings for years. The default policy seems to be (more or less) that if nothing can be installed, nothing bad can happen. This may make the computer secure, but also pretty useless.
Who cares of them, now even my ultra-boring Norton-Antivirus says that the RC2 setup is safe  :o :o :o
It usually annoys me with messages like "unknown origin", "too few users", Reputation threat, and the like...  >:(
Title: Re: Release Candidate #2 for version 12.00 now available
Post by: John Z on May 03, 2023, 12:17:43 PM
Installed fine on a WIN 11 fully up to date 22H2 64 bit system with GData antivirus, FireFox etc.  Did install "for all users" .

Ran fine.  Detected two items that previously given a pass in V11. First a quoted system include, for example "fileapi.h" which should have been <fileapi.h> passed in V11 needed fixing in V12.

Second a warning #2145 in V11 is now an error #2168 error in V12, on a 3rd party open source xlsx writer package from sourceforge.
Code: [Select]
V11 - Building XLXS_Output.obj.
C:\Program Files\PellesC\Files\vCardz\vCardz\XLXS_Output.c(187): warning #2145:
Using incompatible types 'FARPROC (aka int __stdcall (*)())' and 'WRITE_OPEN (aka (incomplete) struct xlsxio_write_struct * __stdcall (*)(const char *, const char *))'.

This one I'll need to figure out, as a warning it ran fine afaik.

John Z
Title: Re: Release Candidate #2 for version 12.00 now available
Post by: Pelle on May 03, 2023, 01:49:06 PM
Detected two items that previously given a pass in V11. First a quoted system include, for example "fileapi.h" which should have been <fileapi.h> passed in V11 needed fixing in V12.
So... what failed that needed fixing? A certain error code, or something else...?

Second a warning #2145 in V11 is now an error #2168 error in V12, on an open source xlsx writer package from sourceforge.
Code: [Select]
V11 - Building XLXS_Output.obj.
C:\Program Files\PellesC\Files\vCardz\vCardz\XLXS_Output.c(187): warning #2145:
Using incompatible types 'FARPROC (aka int __stdcall (*)())' and 'WRITE_OPEN (aka (incomplete) struct xlsxio_write_struct * __stdcall (*)(const char *, const char *))'.
Looks like return type 'int' vs '(incomplete) struct xlsxio_write_struct *', i.e. 'int' vs 'pointer'. For a Win64 project in Microsoft mode this would fail on '32 bits' vs '64 bits'. The quick and very dirty fix is to add a (FARPROC) cast somewhere needed, but I would recommend something better if possible ( FARPROC is not a great type in general, but may be hard to remove if it's part of a library by someone else ).
Title: Re: Release Candidate #2 for version 12.00 now available
Post by: John Z on May 03, 2023, 02:09:22 PM
Detected two items that previously given a pass in V11. First a quoted system include, for example "fileapi.h" which should have been <fileapi.h> passed in V11 needed fixing in V12.
So... what failed that needed fixing? A certain error code, or something else...?
The fix was my error, sorry if not clear -
The quoted system H file was accepted as a 'valid?' H file in V11.  In V12 the quoted system H file aborts the build with a message that it does not know how to build the fileapi.h include file.  I had inadvertently used #include "fileapi.h"  when I should have used #include <fileapi.h>....

Second a warning #2145 in V11 is now an error #2168 error in V12, on an open source xlsx writer package from sourceforge.
Code: [Select]
V11 - Building XLXS_Output.obj.
C:\Program Files\PellesC\Files\vCardz\vCardz\XLXS_Output.c(187): warning #2145:
Using incompatible types 'FARPROC (aka int __stdcall (*)())' and 'WRITE_OPEN (aka (incomplete) struct xlsxio_write_struct * __stdcall (*)(const char *, const char *))'.
Looks like return type 'int' vs '(incomplete) struct xlsxio_write_struct *', i.e. 'int' vs 'pointer'. For a Win64 project in Microsoft mode this would fail on '32 bits' vs '64 bits'. The quick and very dirty fix is to add a (FARPROC) cast somewhere needed, but I would recommend something better if possible ( FARPROC is not a great type in general, but may be hard to remove if it's part of a library by someone else ).
Thanks for the tips!  It is part of a 3rd party lib.  I'll give it a try.

John Z
Title: Re: Release Candidate #2 for version 12.00 now available
Post by: Pelle on May 03, 2023, 03:05:58 PM
In V12 the quoted system H file aborts the build with a message that it does not know how to build the fileapi.h include file.
Sounds like a change in project dependencies ("build rules"). Some IDE actions will trigger an automatic update, but it's not practical to detect every case, so there is also a manual "Update all dependencies" command. Whatever - since it apparently works now...
Title: Re: Release Candidate #2 for version 12.00 now available
Post by: bitcoin on May 03, 2023, 09:13:19 PM
Hello Pelle!
Thank you for you work! This is very good news!
Title: Re: Release Candidate #2 for version 12.00 now available
Post by: Pelle on May 03, 2023, 10:09:40 PM
Hello Pelle!
Thank you for you work! This is very good news!
Thanks!
Title: Re: Release Candidate #2 for version 12.00 now available
Post by: Robert on May 08, 2023, 06:11:53 AM
RC2 install on Windows 11 64 bit, Controlled folder access blocked. See attached .pngs.

RC1 installs O.K.

Reinstalled Windows 11. RC2 now installs without problem in default folder.

Title: Re: Release Candidate #2 for version 12.00 now available
Post by: Pelle on May 08, 2023, 01:11:21 PM
Reinstalled Windows 11. RC2 now installs without problem in default folder.
Good news. Thanks.