Login Page - Create Account

Support Board


Date/Time: Fri, 27 Sep 2024 03:49:01 +0000



Post From: can't compile an old cpp

[2013-11-20 22:06:41]
ariknoi - Posts: 31
i updated to version 1048 (thanks for the re-trail) and still not working


-- Starting build of Custom Studies Source files: DeltaDivergence.cpp. -- 17:00:25

"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\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:37: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:37: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:37: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:37: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:37: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:37: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:37: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:59: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:59:28: error: 'int scdll_DLLVersion()' previously defined here
SCDLLEXPORT int SCDLLCALL scdll_DLLVersion() { return SC_DLL_VERSION; } \
^
C:\SierraChart\ACS_Source\sierrachart.h:57: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:60: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:60:36: error: 'const char* scdll_DLLName()' previously defined here
SCDLLEXPORT const char* SCDLLCALL scdll_DLLName() { return DLLName; }
^
C:\SierraChart\ACS_Source\sierrachart.h:57: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:117:30: error: 'DRAWSTYLE_DONOTDRAW' was not declared in this scope
tSetupSubgraph.DrawStyle = DRAWSTYLE_DONOTDRAW;
^
-- End of Build -- 17:00:33