Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 18:49:43 +0000



Post From: Remote Build for GDIExample.cpp gives errors about use of deleted functions

[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