Support Board
Date/Time: Tue, 26 Nov 2024 16:25:29 +0000
Remote Build for GDIExample.cpp gives errors about use of deleted functions
View Count: 458
[2023-11-05 02:51:27] |
User719512 - Posts: 264 |
Hi Sierra Chart Engineering, I noticed that your remote build service fails to compile GDIExample.cpp. Gives a many errors about use of deleted functions and such. I even trimmed the study down to something trivial and got the following output. -- Starting remote build of Custom Studies Source files: GDIExample.cpp. 64-bit -- 19:45:55 Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: GDIExample.cpp: In function 'void DrawToChart(HWND, HDC, SCStudyInterfaceRef)': GDIExample.cpp:28:27: error: use of deleted function 'n_ACSIL::s_GraphicsBrush::s_GraphicsBrush()' 28 | n_ACSIL::s_GraphicsBrush GraphicsBrush; | ^~~~~~~~~~~~~ In file included from sierrachart.h:22, from GDIExample.cpp:1: scstructures.h:3383:8: note: 'n_ACSIL::s_GraphicsBrush::s_GraphicsBrush()' is implicitly deleted because the default definition would be ill-formed: 3383 | struct s_GraphicsBrush | ^~~~~~~~~~~~~~~ scstructures.h:3383:8: error: use of deleted function 'n_ACSIL::s_GraphicsColor::s_GraphicsColor()' scstructures.h:3337:8: note: 'n_ACSIL::s_GraphicsColor::s_GraphicsColor()' is implicitly deleted because the default definition would be ill-formed: 3337 | struct s_GraphicsColor | ^~~~~~~~~~~~~~~ scstructures.h:3337:8: error: use of deleted function 'n_ACSIL::s_GraphicsColor::u_Color::u_Color()' scstructures.h:3339:8: note: 'n_ACSIL::s_GraphicsColor::u_Color::u_Color()' is implicitly deleted because the default definition would be ill-formed: 3339 | union u_Color | ^~~~~~~ scstructures.h:3349:5: error: union member 'n_ACSIL::s_GraphicsColor::u_Color::RGB' with non-trivial 'constexpr n_ACSIL::s_GraphicsColor::u_Color::<unnamed struct>::<constructor>()' 3349 | } RGB; | ^~~ -- End of Build -- 19:46:00 This is the (modified) file I used for compliation: GDIExample.cpp #include "sierrachart.h" SCDLLName("GDI Example") void DrawToChart(HWND WindowHandle, HDC DeviceContext, SCStudyInterfaceRef sc); SCSFExport scsf_DrawToChartExample(SCStudyInterfaceRef sc) { if (sc.SetDefaults) { // Set the configuration and defaults sc.GraphName = "Draw To Chart Example"; sc.GraphRegion = 0; sc.AutoLoop = 0; return; } sc.p_GDIFunction = DrawToChart; } void DrawToChart(HWND WindowHandle, HDC DeviceContext, SCStudyInterfaceRef sc ) { n_ACSIL::s_GraphicsBrush GraphicsBrush; return; } |
[2023-11-05 15:44:34] |
binaryduke - Posts: 369 |
Same situation here: -- Starting remote build of Custom Studies Source files: GDIExample.cpp. 64-bit -- 09:43:00 Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: GDIExample.cpp: In function 'void DrawToChart(HWND, HDC, SCStudyInterfaceRef)': GDIExample.cpp:53:27: error: use of deleted function 'n_ACSIL::s_GraphicsBrush::s_GraphicsBrush()' 53 | n_ACSIL::s_GraphicsBrush GraphicsBrush; | ^~~~~~~~~~~~~ In file included from sierrachart.h:22, from GDIExample.cpp:1: scstructures.h:3383:8: note: 'n_ACSIL::s_GraphicsBrush::s_GraphicsBrush()' is implicitly deleted because the default definition would be ill-formed: 3383 | struct s_GraphicsBrush | ^~~~~~~~~~~~~~~ scstructures.h:3383:8: error: use of deleted function 'n_ACSIL::s_GraphicsColor::s_GraphicsColor()' scstructures.h:3337:8: note: 'n_ACSIL::s_GraphicsColor::s_GraphicsColor()' is implicitly deleted because the default definition would be ill-formed: 3337 | struct s_GraphicsColor | ^~~~~~~~~~~~~~~ scstructures.h:3337:8: error: use of deleted function 'n_ACSIL::s_GraphicsColor::u_Color::u_Color()' scstructures.h:3339:8: note: 'n_ACSIL::s_GraphicsColor::u_Color::u_Color()' is implicitly deleted because the default definition would be ill-formed: 3339 | union u_Color | ^~~~~~~ scstructures.h:3349:5: error: union member 'n_ACSIL::s_GraphicsColor::u_Color::RGB' with non-trivial 'constexpr n_ACSIL::s_GraphicsColor::u_Color::<unnamed struct>::<constructor>()' 3349 | } RGB; | ^~~ GDIExample.cpp:59:25: error: use of deleted function 'n_ACSIL::s_GraphicsPen::s_GraphicsPen()' 59 | n_ACSIL::s_GraphicsPen GraphicsPenForRectangle; | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from sierrachart.h:22, from GDIExample.cpp:1: scstructures.h:3366:8: note: 'n_ACSIL::s_GraphicsPen::s_GraphicsPen()' is implicitly deleted because the default definition would be ill-formed: 3366 | struct s_GraphicsPen | ^~~~~~~~~~~~~ scstructures.h:3366:8: error: use of deleted function 'n_ACSIL::s_GraphicsColor::s_GraphicsColor()' GDIExample.cpp:74:27: error: use of deleted function 'n_ACSIL::s_GraphicsBrush::s_GraphicsBrush()' 74 | n_ACSIL::s_GraphicsBrush HollowBrush; | ^~~~~~~~~~~ GDIExample.cpp:92:27: error: use of deleted function 'n_ACSIL::s_GraphicsColor::s_GraphicsColor()' 92 | n_ACSIL::s_GraphicsColor GraphicsColor; | ^~~~~~~~~~~~~ GDIExample.cpp:102:25: error: use of deleted function 'n_ACSIL::s_GraphicsPen::s_GraphicsPen()' 102 | n_ACSIL::s_GraphicsPen GraphicsPen; | ^~~~~~~~~~~ -- End of Build -- 09:43:04 |
[2023-11-05 20:36:53] |
Sierra_Chart Engineering - Posts: 17182 |
We will check on this.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-11-08 23:09:30] |
User719512 - Posts: 264 |
This is fixed by the header file updates to add constructors for the affected classes in v2563.
|
[2023-11-09 03:14:12] |
Sierra_Chart Engineering - Posts: 17182 |
That is good.
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: