Support Board
Date/Time: Wed, 22 Jan 2025 13:06:00 +0000
Compile Error in V1806
View Count: 637
[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
|
[2018-09-18 03:28:18] |
Sierra Chart Engineering - Posts: 104368 |
This is resolved in version 1807.
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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2018-09-18 05:20:14] |
ertrader - Posts: 681 |
In V 1807 I am getting the following error message still: -- Starting remote build of Custom Studies Source files: AutoTradeSignalV9bHLMR.cpp. 64-bit -- 01:18:11 Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: 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 -- 01:18:15 |
[2018-09-18 15:06:02] |
John - SC Support - Posts: 37369 |
Use std::max() instead of just max().
For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2018-09-18 18:12:12] |
Sierra Chart Engineering - Posts: 104368 |
We will resolve the issue.
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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2018-09-18 18:12:52
|
[2018-09-18 20:46:00] |
ertrader - Posts: 681 |
Use std::max() instead of just max().
This change gave the following errorWe will resolve the issue.
Will appreciate it----------------------------- The remote build did not succeed. Result: In file included from sierrachart.h:15:0, from AutoTradeSignalV9bHLMR.cpp:1: AutoTradeSignalV9bHLMR.cpp: In function 'void scsf_AutoTradeSignalV9bHLMR(SCStudyInterfaceRef)': scstructures.h:70:29: error: expected unqualified-id before '(' token #define max(a,b) (((a) > (b)) ? (a) : (b)) ^ AutoTradeSignalV9bHLMR.cpp:1419:34: note: in expansion of macro 'max' r_FirstIndexIncluded = std::max(0, Index - TimePeriodLength.GetInt()+1); ^ -- End of Build -- 16:41:37 Date Time Of Last Edit: 2018-09-18 20:57:20
|
[2018-09-18 21:47:03] |
Sierra Chart Engineering - Posts: 104368 |
We are working on a solution.
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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2018-09-19 03:17:15] |
ertrader - Posts: 681 |
V1808 compiling OK
|
To post a message in this thread, you need to log in with your Sierra Chart account: