Support Board
Date/Time: Sun, 24 Nov 2024 19:51:46 +0000
Post From: can't compile an old cpp
[2013-11-20 20:48:32] |
ariknoi - Posts: 31 |
when trying to compile a ccp loaded by another user (delta divergence) in the past i got an amazing amount of rejections when it was working good back than. hope you could advice please thanks ================================================================================================== -- Starting build of Custom Studies Source File: DeltaDivergence.cpp. -- 15:43:36 "C:\SierraChart\CPPCompiler\bin\g++.exe" "C:\SierraChart\ACS_Source\DeltaDivergence.cpp" -march=i686 -mtune=i686 -O2 -shared -static -static-libgcc -static-libstdc++ -s -fno-rtti -fno-exceptions -o "C:\SierraChart\Data\DeltaDivergence.dll" In file included from C:\SierraChart\ACS_Source\sierrachart.h:155:0, from C:\SierraChart\ACS_Source\DeltaDivergence.cpp:7: C:\SierraChart\ACS_Source\scdatetime.h: In function 'SCDateTime GetCurrentDateTimeInGMT()': C:\SierraChart\ACS_Source\scdatetime.h:1180:2: error: 'SYSTEMTIME' was not declared in this scope SYSTEMTIME st; ^ C:\SierraChart\ACS_Source\scdatetime.h:1180:13: error: expected ';' before 'st' SYSTEMTIME st; ^ C:\SierraChart\ACS_Source\scdatetime.h:1183:2: error: '::GetSystemTime' has not been declared ::GetSystemTime(&st); ^ C:\SierraChart\ACS_Source\scdatetime.h:1183:19: error: 'st' was not declared in this scope ::GetSystemTime(&st); ^ In file included from C:\SierraChart\ACS_Source\DeltaDivergence.cpp:7:0: C:\SierraChart\ACS_Source\sierrachart.h: At global scope: C:\SierraChart\ACS_Source\sierrachart.h:182:45: warning: '__cdecl__' attribute only applies to function types [-Wattributes] typedef void (SCDLLCALL* fp_ACSGDIFunction)(HWND WindowHandle, HDC DeviceContext); ^ C:\SierraChart\ACS_Source\sierrachart.h:182:45: error: typedef 'fp_ACSGDIFunction' is initialized (use decltype instead) C:\SierraChart\ACS_Source\sierrachart.h:182:45: error: 'HWND' was not declared in this scope C:\SierraChart\ACS_Source\sierrachart.h:182:64: error: 'HDC' was not declared in this scope typedef void (SCDLLCALL* fp_ACSGDIFunction)(HWND WindowHandle, HDC DeviceContext); ^ C:\SierraChart\ACS_Source\sierrachart.h: In static member function 'static char* SCString::StringNew(size_t)': C:\SierraChart\ACS_Source\sierrachart.h:815:46: error: 'GetProcessHeap' was not declared in this scope p_Block = (char*)HeapAlloc(GetProcessHeap(), 0, (SIZE_T)NumBytes); ^ C:\SierraChart\ACS_Source\sierrachart.h:815:53: error: 'SIZE_T' was not declared in this scope p_Block = (char*)HeapAlloc(GetProcessHeap(), 0, (SIZE_T)NumBytes); ^ C:\SierraChart\ACS_Source\sierrachart.h:815:68: error: 'HeapAlloc' was not declared in this scope p_Block = (char*)HeapAlloc(GetProcessHeap(), 0, (SIZE_T)NumBytes); ^ C:\SierraChart\ACS_Source\sierrachart.h: In static member function 'static void SCString::StringDelete(char*)': C:\SierraChart\ACS_Source\sierrachart.h:823:29: error: 'GetProcessHeap' was not declared in this scope HeapFree(GetProcessHeap(), 0, String); ^ C:\SierraChart\ACS_Source\sierrachart.h:823:41: error: 'HeapFree' was not declared in this scope HeapFree(GetProcessHeap(), 0, String); ^ C:\SierraChart\ACS_Source\sierrachart.h: At global scope: C:\SierraChart\ACS_Source\sierrachart.h:882:3: error: 'COLORREF' does not name a type COLORREF Color; ^ C:\SierraChart\ACS_Source\sierrachart.h:909:3: error: 'COLORREF' does not name a type COLORREF SecondaryColor; // For Highlight tools ^ C:\SierraChart\ACS_Source\sierrachart.h:922:3: error: 'COLORREF' does not name a type COLORREF LevelColor[SC_DRAWING_MAX_LEVELS]; ^ C:\SierraChart\ACS_Source\sierrachart.h: In member function 'void s_UseTool::Clear()': C:\SierraChart\ACS_Source\sierrachart.h:993:4: error: 'Color' was not declared in this scope Color = 0xff000000; ^ C:\SierraChart\ACS_Source\sierrachart.h:1001:4: error: 'SecondaryColor' was not declared in this scope SecondaryColor = 0xff000000; ^ C:\SierraChart\ACS_Source\sierrachart.h:1009:5: error: 'LevelColor' was not declared in this scope LevelColor = 0xff000000; ^ In file included from C:\SierraChart\ACS_Source\DeltaDivergence.cpp:7:0: C:\SierraChart\ACS_Source\sierrachart.h: In member function 'long unsigned int s_SCInput_145::GetColor() const': C:\SierraChart\ACS_Source\sierrachart.h:2482:48: error: 'RGB' was not declared in this scope return (BooleanValue != 0) ? RGB(255,255,255) : 0; ^ C:\SierraChart\ACS_Source\sierrachart.h: In member function 's_SCInput_145& s_SCInput_145::SetColor(unsigned char, unsigned char, unsigned char)': C:\SierraChart\ACS_Source\sierrachart.h:2792:39: error: 'RGB' was not declared in this scope return SetColor(RGB(Red, Green, Blue)); ^ C:\SierraChart\ACS_Source\sierrachart.h: In member function 's_SCInput_145& s_SCInput_145::SetString(const char*)': C:\SierraChart\ACS_Source\sierrachart.h:2873:28: error: 'GetProcessHeap' was not declared in this scope HeapFree(GetProcessHeap(), 0, (char*)StringValue); ^ C:\SierraChart\ACS_Source\sierrachart.h:2873:52: error: 'HeapFree' was not declared in this scope HeapFree(GetProcessHeap(), 0, (char*)StringValue); ^ C:\SierraChart\ACS_Source\sierrachart.h:2885:55: error: 'GetProcessHeap' was not declared in this scope char* NewString = (char*)HeapAlloc(GetProcessHeap(), 8 /*HEAP_ZERO_MEMORY*/, NumBytes); ^ C:\SierraChart\ACS_Source\sierrachart.h:2885:90: error: 'HeapAlloc' was not declared in this scope char* NewString = (char*)HeapAlloc(GetProcessHeap(), 8 /*HEAP_ZERO_MEMORY*/, NumBytes); ^ In file included from C:\SierraChart\ACS_Source\DeltaDivergence.cpp:7:0: C:\SierraChart\ACS_Source\sierrachart.h: At global scope: C:\SierraChart\ACS_Source\sierrachart.h:2986:2: error: 'COLORREF' does not name a type COLORREF TextBackgroundColor; ^ C:\SierraChart\ACS_Source\sierrachart.h: In constructor 's_NumericInformationGraphDrawTypeConfig::s_NumericInformationGraphDrawTypeConfig()': C:\SierraChart\ACS_Source\sierrachart.h:2999:3: error: 'TextBackgroundColor' was not declared in this scope TextBackgroundColor = COLOR_BLACK; ^ In file included from C:\SierraChart\ACS_Source\sierrachart.h:157:0, from C:\SierraChart\ACS_Source\DeltaDivergence.cpp:7: C:\SierraChart\ACS_Source\sccolors.h:16:30: error: 'RGB' was not declared in this scope #define COLOR_BLACK RGB(0,0,0) ^ C:\SierraChart\ACS_Source\sierrachart.h:2999:25: note: in expansion of macro 'COLOR_BLACK' TextBackgroundColor = COLOR_BLACK; ^ In file included from C:\SierraChart\ACS_Source\DeltaDivergence.cpp:7:0: C:\SierraChart\ACS_Source\sierrachart.h: At global scope: C:\SierraChart\ACS_Source\sierrachart.h:4518:2: error: 'COLORREF' does not name a type COLORREF RGBInterpolate(const COLORREF& Color1, const COLORREF& Color2, float ColorDistance) ^ C:\SierraChart\ACS_Source\sierrachart.h:4669:2: error: 'HWND' does not name a type HWND ChartWindowHandle; ^ C:\SierraChart\ACS_Source\sierrachart.h:5701:66: error: 'COLORREF' has not been declared unsigned long (SCDLLCALL* CombinedForegroundBackgroundColorRef)(COLORREF ForegroundColor, COLORREF BackgroundColor); ^ C:\SierraChart\ACS_Source\sierrachart.h:5701:92: error: 'COLORREF' has not been declared unsigned long (SCDLLCALL* CombinedForegroundBackgroundColorRef)(COLORREF ForegroundColor, COLORREF BackgroundColor); ^ C:\SierraChart\ACS_Source\sierrachart.h:5753:2: error: 'fp_ACSGDIFunction' does not name a type fp_ACSGDIFunction p_GDIFunction; ^ In file included from C:\SierraChart\ACS_Source\DeltaDivergence.cpp:7:0: c:\sierrachart\cppcompiler\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.h: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(const std::basic_string<_CharT, _Traits, _Alloc>&) const': C:\SierraChart\ACS_Source\sierrachart.h:150:29: error: expected unqualified-id before '(' token #define min(a,b) (((a) < (b)) ? (a) : (b)) ^ c:\sierrachart\cppcompiler\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.tcc: In member function 'std::basic_string<_CharT, _Traits, _Alloc>::size_type std::basic_string<_CharT, _Traits, _Alloc>::rfind(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type) const': C:\SierraChart\ACS_Source\sierrachart.h:150:29: error: expected unqualified-id before '(' token #define min(a,b) (((a) < (b)) ? (a) : (b)) ^ c:\sierrachart\cppcompiler\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const std::basic_string<_CharT, _Traits, _Alloc>&) const': C:\SierraChart\ACS_Source\sierrachart.h:150:29: error: expected unqualified-id before '(' token #define min(a,b) (((a) < (b)) ? (a) : (b)) ^ c:\sierrachart\cppcompiler\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const std::basic_string<_CharT, _Traits, _Alloc>&, std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type) const': C:\SierraChart\ACS_Source\sierrachart.h:150:29: error: expected unqualified-id before '(' token #define min(a,b) (((a) < (b)) ? (a) : (b)) ^ c:\sierrachart\cppcompiler\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(const _CharT*) const': C:\SierraChart\ACS_Source\sierrachart.h:150:29: error: expected unqualified-id before '(' token #define min(a,b) (((a) < (b)) ? (a) : (b)) ^ c:\sierrachart\cppcompiler\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _CharT*) const': C:\SierraChart\ACS_Source\sierrachart.h:150:29: error: expected unqualified-id before '(' token #define min(a,b) (((a) < (b)) ? (a) : (b)) ^ c:\sierrachart\cppcompiler\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.tcc: In member function 'int std::basic_string<_CharT, _Traits, _Alloc>::compare(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type) const': C:\SierraChart\ACS_Source\sierrachart.h:150:29: error: expected unqualified-id before '(' token #define min(a,b) (((a) < (b)) ? (a) : (b)) ^ In file included from C:\SierraChart\ACS_Source\DeltaDivergence.cpp:7:0: C:\SierraChart\ACS_Source\DeltaDivergence.cpp: In function 'int scdll_DLLVersion()': C:\SierraChart\ACS_Source\sierrachart.h:178:28: error: redefinition of 'int scdll_DLLVersion()' SCDLLEXPORT int SCDLLCALL scdll_DLLVersion() { return SC_DLL_VERSION; } \ ^ C:\SierraChart\ACS_Source\DeltaDivergence.cpp:10:1: note: in expansion of macro 'SCDLLInit' SCDLLInit("Delta Divergence DD"); ^ C:\SierraChart\ACS_Source\sierrachart.h:178:28: error: 'int scdll_DLLVersion()' previously defined here SCDLLEXPORT int SCDLLCALL scdll_DLLVersion() { return SC_DLL_VERSION; } \ ^ C:\SierraChart\ACS_Source\sierrachart.h:176:19: note: in expansion of macro 'SCDLLInit' #define SCDLLName SCDLLInit ^ C:\SierraChart\ACS_Source\DeltaDivergence.cpp:9:1: note: in expansion of macro 'SCDLLName' SCDLLName("DD") ^ C:\SierraChart\ACS_Source\DeltaDivergence.cpp: In function 'const char* scdll_DLLName()': C:\SierraChart\ACS_Source\sierrachart.h:179:36: error: redefinition of 'const char* scdll_DLLName()' SCDLLEXPORT const char* SCDLLCALL scdll_DLLName() { return DLLName; } ^ C:\SierraChart\ACS_Source\DeltaDivergence.cpp:10:1: note: in expansion of macro 'SCDLLInit' SCDLLInit("Delta Divergence DD"); ^ C:\SierraChart\ACS_Source\sierrachart.h:179:36: error: 'const char* scdll_DLLName()' previously defined here SCDLLEXPORT const char* SCDLLCALL scdll_DLLName() { return DLLName; } ^ C:\SierraChart\ACS_Source\sierrachart.h:176:19: note: in expansion of macro 'SCDLLInit' #define SCDLLName SCDLLInit ^ C:\SierraChart\ACS_Source\DeltaDivergence.cpp:9:1: note: in expansion of macro 'SCDLLName' SCDLLName("DD") ^ C:\SierraChart\ACS_Source\DeltaDivergence.cpp: In function 'void scsf_DeltaDivergence(SCStudyInterfaceRef)': C:\SierraChart\ACS_Source\DeltaDivergence.cpp:66:45: error: 'RGB' was not declared in this scope ddBuySubgraph.PrimaryColor = RGB(0, 255, 0); ^ -- End of Build -- 15:43:42 |
DeltaDivergence.cpp - Attached On 2013-11-20 20:47:31 UTC - Size: 12.18 KB - 846 views |