Support Board
Date/Time: Mon, 25 Nov 2024 08:27:15 +0000
Post From: Unable to import CandleStickPattern
[2024-03-20 01:33:01] |
thefilmguy - Posts: 8 |
I get this error below. Do I have this wrong? #include "sierrachart.h"
#include "Studies4.cpp" #include "CandleStickPatternNames.h" #include "CandleStickPatternNames.cpp" SCDLLName("CandleFinder") In file included from CandleFinder.cpp:3: CandleStickPatternNames.h:5:11: error: redefinition of 'const int NUM_CANDLESTICK_PATTERN_NAMES' 5 | const int NUM_CANDLESTICK_PATTERN_NAMES = (sizeof(CandleStickPatternNames)/sizeof(char*))/2 ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from Studies4.cpp:2, from CandleFinder.cpp:2: CandleStickPatternNames.h:5:11: note: 'const int NUM_CANDLESTICK_PATTERN_NAMES' previously defined here 5 | const int NUM_CANDLESTICK_PATTERN_NAMES = (sizeof(CandleStickPatternNames)/sizeof(char*))/2 ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |