Login Page - Create Account

Support Board


Date/Time: Wed, 22 Jan 2025 12:55:01 +0000



Post From: Compile Error in V1806

[2018-09-17 21:29:32]
ertrader - Posts: 681
Hi support.. I am getting a compile error (64 bit). Below are the results. Compiled fine in 1803.

-- Starting remote build of Custom Studies Source files: AutoTradeSignalV9bHLMR.cpp. 64-bit -- 17:27:16
Allow time for the server to compile the files and build the DLL.

The remote build did not succeed. Result:

In file included from scstructures.h:84:0,
from sierrachart.h:15,
from AutoTradeSignalV9bHLMR.cpp:1:
SCString.h: In constructor 'SCString::SCString(const char*, int)':
SCString.h:201:41: error: 'min' was not declared in this scope
StringLength = min(Length, MAX_LENGTH);
^
SCString.h:201:41: note: suggested alternative:
In file included from /usr/lib/gcc/x86_64-w64-mingw32/5.3-win32/include/c++/algorithm:62:0,
from scstructures.h:49,
from sierrachart.h:15,
from AutoTradeSignalV9bHLMR.cpp:1:
/usr/lib/gcc/x86_64-w64-mingw32/5.3-win32/include/c++/bits/stl_algo.h:3451:5: note: 'std::min'
min(initializer_list<_Tp> __l, _Compare __comp)
^
AutoTradeSignalV9bHLMR.cpp: In function 'void scsf_AutoTradeSignalV9bHLMR(SCStudyInterfaceRef)':
AutoTradeSignalV9bHLMR.cpp:1419:71: error: 'max' was not declared in this scope
r_FirstIndexIncluded = max(0, Index - TimePeriodLength.GetInt()+1);
^
AutoTradeSignalV9bHLMR.cpp:1419:71: note: suggested alternative:
In file included from /usr/lib/gcc/x86_64-w64-mingw32/5.3-win32/include/c++/algorithm:62:0,
from scstructures.h:49,
from sierrachart.h:15,
from AutoTradeSignalV9bHLMR.cpp:1:
/usr/lib/gcc/x86_64-w64-mingw32/5.3-win32/include/c++/bits/stl_algo.h:3463:5: note: 'std::max'
max(initializer_list<_Tp> __l, _Compare __comp)
^

-- End of Build -- 17:27:19
Date Time Of Last Edit: 2018-09-17 21:30:28