Support Board
Date/Time: Sat, 01 Feb 2025 12:41:06 +0000
Old indicator (2017) is not compiling with remote build
View Count: 796
[2019-07-13 15:39:26] |
Ernest - Posts: 10 |
Hello support, can you give me a hint of why this indicator is not compiling. I get a massive error file -- Starting remote build of Custom Studies Source files: VolumeSniper.cpp. 64-bit -- 10:35:49
Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: VolumeSniper.cpp: In function 'void AddText(SCStudyInterfaceRef, int, float, COLORREF)': VolumeSniper.cpp:17:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bullish_index = sc.PersistVars->i2; \ ^ VolumeSniper.cpp:57:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:18:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bullish_index = sc.PersistVars->i3; \ ^ VolumeSniper.cpp:57:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:19:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bearish_index = sc.PersistVars->i4; \ ^ VolumeSniper.cpp:57:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:20:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bearish_index = sc.PersistVars->i5; \ ^ VolumeSniper.cpp:57:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:21:31: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bullish_rect = sc.PersistVars->i6; \ ^ VolumeSniper.cpp:57:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:22:32: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bearish_rect = sc.PersistVars->i7; \ ^ VolumeSniper.cpp:57:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:23:23: error: 'struct s_sc' has no member named 'PersistVars' int &last_scale = sc.PersistVars->i8; \ ^ VolumeSniper.cpp:57:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp: In function 'void DrawTableRect(SCStudyInterfaceRef, int, int, int, int, int, COLORREF, COLORREF, int, int, int&)': VolumeSniper.cpp:17:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bullish_index = sc.PersistVars->i2; \ ^ VolumeSniper.cpp:122:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:18:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bullish_index = sc.PersistVars->i3; \ ^ VolumeSniper.cpp:122:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:19:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bearish_index = sc.PersistVars->i4; \ ^ VolumeSniper.cpp:122:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:20:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bearish_index = sc.PersistVars->i5; \ ^ VolumeSniper.cpp:122:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:21:31: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bullish_rect = sc.PersistVars->i6; \ ^ VolumeSniper.cpp:122:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:22:32: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bearish_rect = sc.PersistVars->i7; \ ^ VolumeSniper.cpp:122:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:23:23: error: 'struct s_sc' has no member named 'PersistVars' int &last_scale = sc.PersistVars->i8; \ ^ VolumeSniper.cpp:122:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp: In function 'void DrawTableText(SCStudyInterfaceRef, int, SCString, int, int, COLORREF, int&)': VolumeSniper.cpp:17:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bullish_index = sc.PersistVars->i2; \ ^ VolumeSniper.cpp:161:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:18:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bullish_index = sc.PersistVars->i3; \ ^ VolumeSniper.cpp:161:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:19:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bearish_index = sc.PersistVars->i4; \ ^ VolumeSniper.cpp:161:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:20:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bearish_index = sc.PersistVars->i5; \ ^ VolumeSniper.cpp:161:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:21:31: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bullish_rect = sc.PersistVars->i6; \ ^ VolumeSniper.cpp:161:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:22:32: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bearish_rect = sc.PersistVars->i7; \ ^ VolumeSniper.cpp:161:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:23:23: error: 'struct s_sc' has no member named 'PersistVars' int &last_scale = sc.PersistVars->i8; \ ^ VolumeSniper.cpp:161:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp: In function 'void DrawTableLine(SCStudyInterfaceRef, int, int, int, int, COLORREF, int, int&)': VolumeSniper.cpp:17:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bullish_index = sc.PersistVars->i2; \ ^ VolumeSniper.cpp:191:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:18:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bullish_index = sc.PersistVars->i3; \ ^ VolumeSniper.cpp:191:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:19:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bearish_index = sc.PersistVars->i4; \ ^ VolumeSniper.cpp:191:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:20:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bearish_index = sc.PersistVars->i5; \ ^ VolumeSniper.cpp:191:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:21:31: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bullish_rect = sc.PersistVars->i6; \ ^ VolumeSniper.cpp:191:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:22:32: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bearish_rect = sc.PersistVars->i7; \ ^ VolumeSniper.cpp:191:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:23:23: error: 'struct s_sc' has no member named 'PersistVars' int &last_scale = sc.PersistVars->i8; \ ^ VolumeSniper.cpp:191:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp: In function 'void DrawTextInCell(SCStudyInterfaceRef, SCString, int, int, int)': VolumeSniper.cpp:17:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bullish_index = sc.PersistVars->i2; \ ^ VolumeSniper.cpp:281:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:18:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bullish_index = sc.PersistVars->i3; \ ^ VolumeSniper.cpp:281:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:19:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bearish_index = sc.PersistVars->i4; \ ^ VolumeSniper.cpp:281:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:20:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bearish_index = sc.PersistVars->i5; \ ^ VolumeSniper.cpp:281:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:21:31: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bullish_rect = sc.PersistVars->i6; \ ^ VolumeSniper.cpp:281:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:22:32: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bearish_rect = sc.PersistVars->i7; \ ^ VolumeSniper.cpp:281:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:23:23: error: 'struct s_sc' has no member named 'PersistVars' int &last_scale = sc.PersistVars->i8; \ ^ VolumeSniper.cpp:281:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp: In function 'void DrawNumberInCell(SCStudyInterfaceRef, int, int, int, int)': VolumeSniper.cpp:17:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bullish_index = sc.PersistVars->i2; \ ^ VolumeSniper.cpp:301:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:18:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bullish_index = sc.PersistVars->i3; \ ^ VolumeSniper.cpp:301:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:19:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bearish_index = sc.PersistVars->i4; \ ^ VolumeSniper.cpp:301:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:20:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bearish_index = sc.PersistVars->i5; \ ^ VolumeSniper.cpp:301:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:21:31: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bullish_rect = sc.PersistVars->i6; \ ^ VolumeSniper.cpp:301:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:22:32: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bearish_rect = sc.PersistVars->i7; \ ^ VolumeSniper.cpp:301:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:23:23: error: 'struct s_sc' has no member named 'PersistVars' int &last_scale = sc.PersistVars->i8; \ ^ VolumeSniper.cpp:301:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp: In function 'void DrawEmptyTable(SCStudyInterfaceRef)': VolumeSniper.cpp:17:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bullish_index = sc.PersistVars->i2; \ ^ VolumeSniper.cpp:321:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:18:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bullish_index = sc.PersistVars->i3; \ ^ VolumeSniper.cpp:321:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:19:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bearish_index = sc.PersistVars->i4; \ ^ VolumeSniper.cpp:321:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:20:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bearish_index = sc.PersistVars->i5; \ ^ VolumeSniper.cpp:321:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:21:31: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bullish_rect = sc.PersistVars->i6; \ ^ VolumeSniper.cpp:321:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:22:32: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bearish_rect = sc.PersistVars->i7; \ ^ VolumeSniper.cpp:321:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:23:23: error: 'struct s_sc' has no member named 'PersistVars' int &last_scale = sc.PersistVars->i8; \ ^ VolumeSniper.cpp:321:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp: In function 'void CheckTable(SCStudyInterfaceRef)': VolumeSniper.cpp:17:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bullish_index = sc.PersistVars->i2; \ ^ VolumeSniper.cpp:368:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:18:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bullish_index = sc.PersistVars->i3; \ ^ VolumeSniper.cpp:368:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:19:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bearish_index = sc.PersistVars->i4; \ ^ VolumeSniper.cpp:368:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:20:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bearish_index = sc.PersistVars->i5; \ ^ VolumeSniper.cpp:368:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:21:31: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bullish_rect = sc.PersistVars->i6; \ ^ VolumeSniper.cpp:368:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:22:32: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bearish_rect = sc.PersistVars->i7; \ ^ VolumeSniper.cpp:368:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:23:23: error: 'struct s_sc' has no member named 'PersistVars' int &last_scale = sc.PersistVars->i8; \ ^ VolumeSniper.cpp:368:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp: In function 'void EraseTable(SCStudyInterfaceRef)': VolumeSniper.cpp:17:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bullish_index = sc.PersistVars->i2; \ ^ VolumeSniper.cpp:378:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:18:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bullish_index = sc.PersistVars->i3; \ ^ VolumeSniper.cpp:378:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:19:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bearish_index = sc.PersistVars->i4; \ ^ VolumeSniper.cpp:378:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:20:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bearish_index = sc.PersistVars->i5; \ ^ VolumeSniper.cpp:378:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:21:31: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bullish_rect = sc.PersistVars->i6; \ ^ VolumeSniper.cpp:378:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:22:32: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bearish_rect = sc.PersistVars->i7; \ ^ VolumeSniper.cpp:378:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:23:23: error: 'struct s_sc' has no member named 'PersistVars' int &last_scale = sc.PersistVars->i8; \ ^ VolumeSniper.cpp:378:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp: In function 'void EraseRectangles(SCStudyInterfaceRef)': VolumeSniper.cpp:17:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bullish_index = sc.PersistVars->i2; \ ^ VolumeSniper.cpp:418:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:18:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bullish_index = sc.PersistVars->i3; \ ^ VolumeSniper.cpp:418:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:19:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bearish_index = sc.PersistVars->i4; \ ^ VolumeSniper.cpp:418:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:20:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bearish_index = sc.PersistVars->i5; \ ^ VolumeSniper.cpp:418:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:21:31: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bullish_rect = sc.PersistVars->i6; \ ^ VolumeSniper.cpp:418:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:22:32: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bearish_rect = sc.PersistVars->i7; \ ^ VolumeSniper.cpp:418:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:23:23: error: 'struct s_sc' has no member named 'PersistVars' int &last_scale = sc.PersistVars->i8; \ ^ VolumeSniper.cpp:418:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp: In function 'void CheckCutRectBullish(SCStudyInterfaceRef)': VolumeSniper.cpp:17:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bullish_index = sc.PersistVars->i2; \ ^ VolumeSniper.cpp:455:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:18:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bullish_index = sc.PersistVars->i3; \ ^ VolumeSniper.cpp:455:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:19:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bearish_index = sc.PersistVars->i4; \ ^ VolumeSniper.cpp:455:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:20:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bearish_index = sc.PersistVars->i5; \ ^ VolumeSniper.cpp:455:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:21:31: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bullish_rect = sc.PersistVars->i6; \ ^ VolumeSniper.cpp:455:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:22:32: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bearish_rect = sc.PersistVars->i7; \ ^ VolumeSniper.cpp:455:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:23:23: error: 'struct s_sc' has no member named 'PersistVars' int &last_scale = sc.PersistVars->i8; \ ^ VolumeSniper.cpp:455:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp: In function 'void CheckCutRectBearish(SCStudyInterfaceRef)': VolumeSniper.cpp:17:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bullish_index = sc.PersistVars->i2; \ ^ VolumeSniper.cpp:494:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:18:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bullish_index = sc.PersistVars->i3; \ ^ VolumeSniper.cpp:494:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:19:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bearish_index = sc.PersistVars->i4; \ ^ VolumeSniper.cpp:494:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:20:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bearish_index = sc.PersistVars->i5; \ ^ VolumeSniper.cpp:494:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:21:31: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bullish_rect = sc.PersistVars->i6; \ ^ VolumeSniper.cpp:494:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:22:32: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bearish_rect = sc.PersistVars->i7; \ ^ VolumeSniper.cpp:494:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:23:23: error: 'struct s_sc' has no member named 'PersistVars' int &last_scale = sc.PersistVars->i8; \ ^ VolumeSniper.cpp:494:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp: In function 'int GetBullishRevCountByTickSize(SCStudyInterfaceRef, int)': VolumeSniper.cpp:535:12: error: 'struct s_sc' has no member named 'PersistVars' return sc.PersistVars->Integers[BULLISH_BASE + tick_size]; ^ VolumeSniper.cpp: In function 'int GetBearishRevCountByTickSize(SCStudyInterfaceRef, int)': VolumeSniper.cpp:542:12: error: 'struct s_sc' has no member named 'PersistVars' return sc.PersistVars->Integers[BEARISH_BASE + tick_size]; ^ VolumeSniper.cpp: In function 'void AddBullishRevCountByTickSize(SCStudyInterfaceRef, int, int)': VolumeSniper.cpp:549:5: error: 'struct s_sc' has no member named 'PersistVars' sc.PersistVars->Integers[BULLISH_BASE + tick_size]+=val; ^ VolumeSniper.cpp: In function 'void AddBearishRevCountByTickSize(SCStudyInterfaceRef, int, int)': VolumeSniper.cpp:556:5: error: 'struct s_sc' has no member named 'PersistVars' sc.PersistVars->Integers[BEARISH_BASE + tick_size]+=val; ^ VolumeSniper.cpp: In function 'void CalcBullishRevesalTicks(SCStudyInterfaceRef)': VolumeSniper.cpp:17:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bullish_index = sc.PersistVars->i2; \ ^ VolumeSniper.cpp:597:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:18:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bullish_index = sc.PersistVars->i3; \ ^ VolumeSniper.cpp:597:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:19:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bearish_index = sc.PersistVars->i4; \ ^ VolumeSniper.cpp:597:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:20:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bearish_index = sc.PersistVars->i5; \ ^ VolumeSniper.cpp:597:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:21:31: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bullish_rect = sc.PersistVars->i6; \ ^ VolumeSniper.cpp:597:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:22:32: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bearish_rect = sc.PersistVars->i7; \ ^ VolumeSniper.cpp:597:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:23:23: error: 'struct s_sc' has no member named 'PersistVars' int &last_scale = sc.PersistVars->i8; \ ^ VolumeSniper.cpp:597:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp: In function 'void CalcBearishRevesalTicks(SCStudyInterfaceRef)': VolumeSniper.cpp:17:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bullish_index = sc.PersistVars->i2; \ ^ VolumeSniper.cpp:625:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:18:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bullish_index = sc.PersistVars->i3; \ ^ VolumeSniper.cpp:625:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:19:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bearish_index = sc.PersistVars->i4; \ ^ VolumeSniper.cpp:625:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:20:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bearish_index = sc.PersistVars->i5; \ ^ VolumeSniper.cpp:625:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:21:31: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bullish_rect = sc.PersistVars->i6; \ ^ VolumeSniper.cpp:625:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:22:32: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bearish_rect = sc.PersistVars->i7; \ ^ VolumeSniper.cpp:625:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:23:23: error: 'struct s_sc' has no member named 'PersistVars' int &last_scale = sc.PersistVars->i8; \ ^ VolumeSniper.cpp:625:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp: In function 'void scsf_volumesniper(SCStudyInterfaceRef)': VolumeSniper.cpp:17:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bullish_index = sc.PersistVars->i2; \ ^ VolumeSniper.cpp:677:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:18:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bullish_index = sc.PersistVars->i3; \ ^ VolumeSniper.cpp:677:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:19:31: error: 'struct s_sc' has no member named 'PersistVars' int &first_bearish_index = sc.PersistVars->i4; \ ^ VolumeSniper.cpp:677:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:20:33: error: 'struct s_sc' has no member named 'PersistVars' int ¤t_bearish_index = sc.PersistVars->i5; \ ^ VolumeSniper.cpp:677:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:21:31: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bullish_rect = sc.PersistVars->i6; \ ^ VolumeSniper.cpp:677:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:22:32: error: 'struct s_sc' has no member named 'PersistVars' int &now_in_bearish_rect = sc.PersistVars->i7; \ ^ VolumeSniper.cpp:677:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:23:23: error: 'struct s_sc' has no member named 'PersistVars' int &last_scale = sc.PersistVars->i8; \ ^ VolumeSniper.cpp:677:2: note: in expansion of macro 'REFS' REFS; ^ VolumeSniper.cpp:752:7: error: 'struct s_sc' has no member named 'PersistVars' sc.PersistVars->Integers[i] = 0; ^ -- End of Build -- 10:36:00 |
[2019-07-13 21:35:06] |
Sierra Chart Engineering - Posts: 104368 |
You need to use the new persistent variable functions: sc.GetPersistentInt() This: int &first_bullish_index = sc.PersistVars->i2;
Needs to to be changed to: int &first_bullish_index = sc.GetPersistentInt(2);
Be sure to use a unique number for each integer. 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: 2019-07-13 21:35:15
|
[2019-07-14 14:15:21] |
Ernest - Posts: 10 |
Thank you support, that fixed a lot of the errors. Now I am getting this, again, a hint will help... -- Starting remote build of Custom Studies Source files: VolumeSniper.cpp. 64-bit -- 09:13:26 Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: VolumeSniper.cpp: In function 'int GetBullishRevCountByTickSize(SCStudyInterfaceRef, int)': VolumeSniper.cpp:535:12: error: 'struct s_sc' has no member named 'PersistVars' return sc.PersistVars->Integers[BULLISH_BASE + tick_size]; ^ VolumeSniper.cpp: In function 'int GetBearishRevCountByTickSize(SCStudyInterfaceRef, int)': VolumeSniper.cpp:542:12: error: 'struct s_sc' has no member named 'PersistVars' return sc.PersistVars->Integers[BEARISH_BASE + tick_size]; ^ VolumeSniper.cpp: In function 'void AddBullishRevCountByTickSize(SCStudyInterfaceRef, int, int)': VolumeSniper.cpp:549:5: error: 'struct s_sc' has no member named 'PersistVars' sc.PersistVars->Integers[BULLISH_BASE + tick_size]+=val; ^ VolumeSniper.cpp: In function 'void AddBearishRevCountByTickSize(SCStudyInterfaceRef, int, int)': VolumeSniper.cpp:556:5: error: 'struct s_sc' has no member named 'PersistVars' sc.PersistVars->Integers[BEARISH_BASE + tick_size]+=val; ^ VolumeSniper.cpp: In function 'void scsf_volumesniper(SCStudyInterfaceRef)': VolumeSniper.cpp:752:7: error: 'struct s_sc' has no member named 'PersistVars' sc.PersistVars->Integers[i] = 0; ^ -- End of Build -- 09:13:29 |
[2019-07-15 06:40:29] |
Sierra Chart Engineering - Posts: 104368 |
Code like this: return sc.PersistVars->Integers[BULLISH_BASE + tick_size];
Needs to be changed to: return sc.GetPersistentInt(BULLISH_BASE + tick_size);
But there is a possibility of conflict with code like this: int &first_bullish_index = sc.GetPersistentInt(2);
You need to be sure that every unique persistent variable that is required uses a unique integer identifier. 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 |
[2019-07-15 18:35:03] |
Ernest - Posts: 10 |
As always, excellent support. Everything got fixed now
|
To post a message in this thread, you need to log in with your Sierra Chart account: