Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 01:29:11 +0000



Post From: Get error during compilation

[2013-12-20 06:01:48]
User52100 - Posts: 2
As per suggest of yours i disable code on my file. but still get below error please suggest it.

Starting build of Custom Studies Source files: DeltaDivergence_Gilad-EXPLANATIONS_v5.cpp. -- 11:24:33

"C:\SierraChart\CPPCompiler\bin\g++.exe" "C:\SierraChart\ACS_Source\DeltaDivergence_Gilad-EXPLANATIONS_v5.cpp" -march=i686 -mtune=i686 -O2 -shared -static -static-libgcc -static-libstdc++ -s -fno-rtti -fno-exceptions -o "C:\SierraChart\Data\DeltaDivergence_Gilad-EXPLANATIONS_v5.dll"

In file included from C:\SierraChart\ACS_Source\DeltaDivergence_Gilad-EXPLANATIONS_v5.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))
^
C:\SierraChart\ACS_Source\DeltaDivergence_Gilad-EXPLANATIONS_v5.cpp: In function 'void scsf_DeltaDivergence(SCStudyInterfaceRef)':
C:\SierraChart\ACS_Source\DeltaDivergence_Gilad-EXPLANATIONS_v5.cpp:117:30: error: 'DRAWSTYLE_DONOTDRAW' was not declared in this scope
tSetupSubgraph.DrawStyle = DRAWSTYLE_DONOTDRAW;
^
-- End of Build -- 11:24:39