|
|
Home » Community » U++ community news and announcements » 2022(?).2 beta
|
|
Re: 2022(?).2 beta [message #59304 is a reply to message #59303] |
Tue, 13 December 2022 10:25   |
Tom1
Messages: 1301 Registered: March 2007
|
Ultimate Contributor |
|
|
Hi,
It seems StaticText has changed. Where is:
Or how can I get this done now?
Best regards,
Tom
|
|
|
|
Re: 2022(?).2 beta [message #59306 is a reply to message #59305] |
Tue, 13 December 2022 10:56   |
Tom1
Messages: 1301 Registered: March 2007
|
Ultimate Contributor |
|
|
Mirek,
Thanks, it works now. (Also thanks for fixing the warnings with MSBTx64.)
Just noticed that the left stripe in code editor no longer shows errors, just recently edited code. (I'm on Windows if that has any significance...)
Best regards,
Tom
|
|
|
|
Re: 2022(?).2 beta [message #59308 is a reply to message #59307] |
Tue, 13 December 2022 11:42   |
Tom1
Messages: 1301 Registered: March 2007
|
Ultimate Contributor |
|
|
OK, I see. I turned back on the 'Show errors in the current file...' option. It seems less intrusive now. Maybe I will learn to like it.
Unfortunately, it seems to erroneously flag my structure packing pragma:
It complains about "Unterminated #pragma pack(push,...) at end of file". It seems to ignore:
following the packed structure(s).
Best regards,
Tom
|
|
|
|
|
|
Re: 2022(?).2 beta [message #59313 is a reply to message #59312] |
Tue, 13 December 2022 13:30   |
Tom1
Messages: 1301 Registered: March 2007
|
Ultimate Contributor |
|
|
mirek wrote on Tue, 13 December 2022 14:21Tom1 wrote on Tue, 13 December 2022 11:42OK, I see. I turned back on the 'Show errors in the current file...' option. It seems less intrusive now. Maybe I will learn to like it.
Unfortunately, it seems to erroneously flag my structure packing pragma:
It complains about "Unterminated #pragma pack(push,...) at end of file". It seems to ignore:
following the packed structure(s).
Best regards,
Tom
-Wno-pragma-pack seems to do the job. It is now default (but you will need to add it to Assist setup. Note that unless you update theide (one more bug fixed), it needs restart).
Thanks for testing. At this time very helpful. I still want to release 2022.2 (not 2023.1) 
Thanks Mirek,
It works now! (I could not do it here with -Wno-pragma-pack, but your fix worked.)
Please note though that 2022.2 has been out for quite some time, so this must be 2022.3. (The U++ front page says 2022.2 (rev. 16270)).
BR, Tom
|
|
|
|
|
|
|
|
|
Re: 2022(?).2 beta [message #59320 is a reply to message #59319] |
Tue, 13 December 2022 19:01   |
zsolt
Messages: 702 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
mirek wrote on Tue, 13 December 2022 18:32zsolt wrote on Tue, 13 December 2022 18:17Thanks.
Sometimes Assist ended up in parsing them endlessly, so I started to rename .icpp files to .cpp.
As I can see, they are not needed anymore. I used them for registering translations and unit tests, but now they are working in .cpp files as well.
Careful here:
The purpose of .icpp was that it never went into .lib file during the build process, always are linked as .obj. This has the effect that it is always linked; files in .lib can be ignored if there are no references to its contents from other files.
In debug, theide builder does not bother creating .libs. So what you do can work in debug and fail in release.
Current U++ really dropped .icpp use (but still supports them when building), replaced with INITIALIZE and INITIALIZER macros (which basically create the reference to initializer by including the file). It is not ideal either, but makes U++ tiny bit more standard.
Thanks, I have just checked these macros, but I think, it would be a nightmare to use them for every unit tests I created.
But I turned on Blitz for compiling release builds and it seems to me, that it doesn't generate .libs. Is that true?
|
|
|
Re: 2022(?).2 beta [message #59321 is a reply to message #59320] |
Tue, 13 December 2022 19:12   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
zsolt wrote on Tue, 13 December 2022 19:01mirek wrote on Tue, 13 December 2022 18:32zsolt wrote on Tue, 13 December 2022 18:17Thanks.
Sometimes Assist ended up in parsing them endlessly, so I started to rename .icpp files to .cpp.
As I can see, they are not needed anymore. I used them for registering translations and unit tests, but now they are working in .cpp files as well.
Careful here:
The purpose of .icpp was that it never went into .lib file during the build process, always are linked as .obj. This has the effect that it is always linked; files in .lib can be ignored if there are no references to its contents from other files.
In debug, theide builder does not bother creating .libs. So what you do can work in debug and fail in release.
Current U++ really dropped .icpp use (but still supports them when building), replaced with INITIALIZE and INITIALIZER macros (which basically create the reference to initializer by including the file). It is not ideal either, but makes U++ tiny bit more standard.
Thanks, I have just checked these macros, but I think, it would be a nightmare to use them for every unit tests I created.
But I turned on Blitz for compiling release builds and it seems to me, that it doesn't generate .libs. Is that true?
Yes. But I cannot guarantee it will not change in the future.
|
|
|
|
Goto Forum:
Current Time: Sun Apr 20 18:48:20 CEST 2025
Total time taken to generate the page: 0.03220 seconds
|
|
|