Pelles C > Announcements

Release Candidate #2 for version 12.00 now available

<< < (2/3) > >>

frankie:

--- Quote from: 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.

--- End quote ---
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...  >:(

John Z:
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: ---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 *))'.
--- End code ---

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

John Z

Pelle:

--- Quote from: John Z on May 03, 2023, 12:17:43 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.

--- End quote ---
So... what failed that needed fixing? A certain error code, or something else...?


--- Quote from: John Z on May 03, 2023, 12:17:43 PM ---Second a warning #2145 in V11 is now an error #2168 error in V12, on an open source xlsx writer package from sourceforge.

--- Code: ---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 *))'.
--- End code ---

--- End quote ---
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 ).

John Z:

--- Quote from: Pelle on May 03, 2023, 01:49:06 PM ---
--- Quote from: John Z on May 03, 2023, 12:17:43 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.

--- End quote ---
So... what failed that needed fixing? A certain error code, or something else...?
--- End quote ---
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>....


--- Quote from: Pelle on May 03, 2023, 01:49:06 PM ---
--- Quote from: John Z on May 03, 2023, 12:17:43 PM ---Second a warning #2145 in V11 is now an error #2168 error in V12, on an open source xlsx writer package from sourceforge.

--- Code: ---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 *))'.
--- End code ---

--- End quote ---
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 ).

--- End quote ---
Thanks for the tips!  It is part of a 3rd party lib.  I'll give it a try.

John Z

Pelle:

--- Quote from: John Z on May 03, 2023, 02:09:22 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.

--- End quote ---
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...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version