Login Page - Create Account

Support Board


Date/Time: Sun, 08 Sep 2024 01:45:44 +0000



Post From: Error when attempting Remote Build

[2024-05-07 11:06:47]
Dutch - Posts: 4
Good morning SC Support,
When I try to compile remotely, I get an error message, see below. The DLL is not built. I'm on the current SC version (2634). When I compile the same source file locally (C++ compiler installed), then I get no errors and the DLL is built correctly.
Any suggestions?


-- Starting remote build of Custom Studies Source files: TradingSystemBasedOnAlertCondition.cpp. 64-bit -- 05:43:09

Allow time for the server to compile the files and build the DLL.

Server: https://build.sierrachart.com
The remote build did not succeed. Result:

In file included from scstructures.h:109,
from sierrachart.h:22,
from TradingSystemBasedOnAlertCondition.cpp:1:
In constructor 'SCString::SCString(const char*)',
inlined from 'void scsf_TradingSystemBasedOnAlertCondition(SCStudyInterfaceRef)' at TradingSystemBasedOnAlertCondition.cpp:271:54:
SCString.h:174:11: warning: 'char* strncpy(char*, const char*, size_t)' specified bound depends on the length of the source argument [-Wstringop-overflow=]
174 | strncpy(m_String, SourceString, StringLength);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SCString.h: In function 'void scsf_TradingSystemBasedOnAlertCondition(SCStudyInterfaceRef)':
SCString.h:740:36: note: length computed here
740 | const size_t StringLength = strlen(String);
| ~~~~~~^~~~~~~~

-- End of Build -- 05:43:15