Support Board
Date/Time: Sun, 06 Jul 2025 09:34:43 +0000
Post From: Keep getting an error.
[2025-06-29 15:34:00] |
User520975 - Posts: 6 |
#include "sierrachart.h" SCDLLName("Test Study") SCSFExport void scsf_TestStudy(SCStudyInterfaceRef sc) { if (sc.SetDefaults) { sc.GraphName = "Test Study"; sc.AutoLoop = 1; return; } } Why does This test cpp keep getting errors? error: two or more data types in declaration of 'scsf_TestStudy' I’ve now tested with both: • SCStudyInterfaceRef sc • and the fully expanded struct s_sc& sc using this exact minimal study: #include "sierrachart.h" SCDLLName("Test Study") SCSFExport void scsf_TestStudy(struct s_sc& sc) { if (sc.SetDefaults) { sc.GraphName = "Test Study"; sc.AutoLoop = 1; return; } } This still fails with: error: two or more data types in declaration of 'scsf_TestStudy' I believe the issue is not in the source code but in the remote builder environment itself (e.g., macro expansion or header conflict on the server). Please advise — this is blocking all custom study development. Date Time Of Last Edit: 2025-06-29 16:02:12
|