Support Board
Date/Time: Sat, 13 Sep 2025 16:38:23 +0000
Post From: Linux
[2025-09-10 06:15:00] |
R1sk - Posts: 247 |
I have also encountered a similar issue with lambda expressions. This code will generate a carbage function reference into the DLL function list in SierraChart. include "sierrachart.h"
#include <algorithm> SCDLLName("Test") SCSFExport scsf_Test(SCStudyInterfaceRef sc) { std::vector<int> entries; std::sort(entries.begin(), entries.end(), [](int a, int b) { return a > b; }); } But doing this without lambdas will work as expected: #include "sierrachart.h"
#include <algorithm> SCDLLName("Test") bool compareInts(int a, int b) { return a > b; } SCSFExport scsf_Test(SCStudyInterfaceRef sc) { std::vector<int> entries; std::sort(entries.begin(), entries.end(), compareInts); } EDIT Forgot to say that this is a minGW cross-compiler/linker issue. MSVC works ok. Date Time Of Last Edit: 2025-09-10 07:17:43
|