Andrew Bond

Member since: Monday, 17 November 2014
Last login: 3 days ago
Profile viewed: 433 views

Your Rank: 46
Points: 55

Andrew Bond created a new topic ' How to detect CLANG compiler flags at compile time' in the forum. 3 days ago

I currently use the following pragmas to detect - at compile time - the compiler flags my projects pass to the bcc32 (i.e. Borland) compiler:

#pragma defineonoption INTEGERSIZEDENUMSOFF -bi-#if !defined(INTEGERSIZEDENUMSOFF)#error Integer-sized enums option is not OFF (-bi-) (Options > C++ Compiler > General >Integer-size enums)#endif

This allows me to ensure that all my DLLs (over 20) have the same project settings as my app (in this case, the flag -bi- which turns Interger-sized enums off).
The equivalent compiler flag for the bcc32c (i.e. CLANG) compiler is -fshort-enums. But the following does not work with CLANG:
#pragma defineonoption INTEGERSIZEDENUMSON -short-enums#if defined(INTEGERSIZEDENUMSON)#error Integer-sized enums option is ON (-fshort-enums) (Options > C++ Compiler > General >Integer-size enums)#endif

since #pragma defineonoption is not recognized by CLANG.
Does anyone know of an equivalent pragma in CLANG to do what I want here?
Thanks in anticipation!
Andrew

Read More...

Andrew Bond created a new topic ' How to recompile Boost libs with different flags' in the forum. 3 days ago

(also posted to forums.embarcadero.com, where it has had no reply)
I understand that the Boost libraires that come with C++Builder have been built with the Integer-sized Enum flag set to OFF (i.e. BCC32 flag -bi-).
Can anyone confirm if this is true?
Since my DLLs, EXEs, and thrird-party packages are all compiled with default settings (Integer-sized Enum flag set to ON, i.e. BCC32 flag -bi), I need to recompile the supplied Boost libraries with that flag changed.
Does anyone know the best way to do this?
I cannot find a way to change the default setting for this flag in ALL projects.
I am using C++Builder 10.1 Berlin.
Thanks in anticipation.
Andrew
PS This would also be helpful to ovecome a problem with the C++Builder 10.2 Tokyo supplied Boost libraires, which have been compiled (by Embarcadero) with the Memory Manager from Berlin not Tokyo! See QC Report RSP-18123

Read More...

DavidWhen will the toolchain be fixe to allow Boost to be used with Tokyo? This is a MAJOR bug, making it impossible for us to upgrade to Tokyo since we rely on boost.Please see RSP-18123 (which remains unresolved).The proble is that the pre-packaged

David You were asking for the bug report concerning dupliacte tags being added to project files. Here are some reports about this:RSP-9774 closed as fixed (duplicate) - but I can confirm it is NOT fixed in C++Builder 10.1 Berlin RSP-12577 still open

David, I am porting a large app from C++Builder 10.1 Berlin to 10.2 Tokyo. Under Berlin I used the linker flag -GHtds=0x0f400000 to overcome the out-of-memory problem.Can you confirm that the equivalent option under Tokyo is "TDS Hep Size" under "Lin

Andrew Bond created a new topic ' sigC++ signals library w/ C++Builder 10.1 Berlin?' in the forum. 2 months ago

Has anyone managed to get the sigC++ signals library to work with C++Builder 10.1 Berlin (Update 2)?
I am using the 32-bit CLANG compiler and I am getting the following error message in slot.h:

[C++ Error] slot.h(136, 35): use 'template' keyword to treat 'operator ()' as a dependent template name
I am also unsure how to setup the sigc++config.h file for CLANG.
If anyone can help, I'd be most grateful.
Thanks
Andrew

Read More...

Andrew Bond created a new topic ' Access violation when program raises an exception' in the forum. 1 year ago

I am using C++Builder 10 Seattle to develop a 32 bit program with the CLANG compiler.
When I run the program and it raises an exception, I get the following Debugger Exception Notification:

Project Registrar3.exe raised excpetion class $C00000005 with message 'access violation at 0x32209c14: read of adress 0x174eb7fc'
I get the same message no matter where the exception is raised.
Can anyone suggest what might be the cause of this?
Thanks in anticipation.
Andrew

Read More...

Andrew Bond replied to the topic 'Undergoing community website changes' in the forum. 2 years ago

On trying to post replies to the forum I get the error message:


Error: You have entered information to an obsolete form from another session. Please verify that the user account is yours and please try again!


The forum appears to have logged me out between penning this response and submitting it.


This has now happened every time I have tried to do so this afternoon. Very annoying!


And why are lines apperining double-spaced once posted?



Read More...

Andrew Bond replied to the topic 'Undergoing community website changes' in the forum. 2 years ago

On trying to post replies to the forum I get the erro message:


Error: You have entered information to an obsolete form from another session. Please verify that the user account is yours and please try again!



The forum appears to have logged me out between penning this response and submitting it.


This has now happened every time I have tried to do so this afternoon. Very annoying!


And why are lines being double-space now once posted?



Read More...

Andrew Bond shared a photo. 2 years ago

Andrew Bond

Andrew Bond