Support Board
Date/Time: Sat, 23 Nov 2024 21:36:34 +0000
Something not right with the compiler
View Count: 2027
[2013-08-24 07:04:55] |
maxpi - Posts: 181 |
I just built a machine, installed Win 7, SC [ver 1014, non-net] including the compiler. The compiler seems to be missing some libraries or something. A build of the skeleton study produces a lot of errors: -- Starting build of Custom Studies Source File: TestThingy.cpp. -- 23:52:51 "C:\SierraChart\CPPCompiler\bin\g++.exe" "C:\SierraChart\ACS_Source\TestThingy.cpp" -march=i686 -mtune=i686 -O2 -shared -static -static-libgcc -static-libstdc++ -s -fno-rtti -fno-exceptions -o "C:\SierraChart\Data\TestThingy.dll" In file included from C:\SierraChart\ACS_Source\sierrachart.h:155:0, from C:\SierraChart\ACS_Source\TestThingy.cpp:2: C:\SierraChart\ACS_Source\scdatetime.h: In function 'SCDateTime GetCurrentDateTimeInGMT()': C:\SierraChart\ACS_Source\scdatetime.h:1223:2: error: 'SYSTEMTIME' was not declared in this scope C:\SierraChart\ACS_Source\scdatetime.h:1223:13: error: expected ';' before 'st' C:\SierraChart\ACS_Source\scdatetime.h:1226:2: error: '::GetSystemTime' has not been declared C:\SierraChart\ACS_Source\scdatetime.h:1226:19: error: 'st' was not declared in this scope In file included from C:\SierraChart\ACS_Source\TestThingy.cpp:2: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] 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 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 C:\SierraChart\ACS_Source\sierrachart.h:815:53: error: 'SIZE_T' was not declared in this scope C:\SierraChart\ACS_Source\sierrachart.h:815:68: error: 'HeapAlloc' was not declared in this scope 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 C:\SierraChart\ACS_Source\sierrachart.h:823:41: error: 'HeapFree' was not declared in this scope C:\SierraChart\ACS_Source\sierrachart.h: At global scope: C:\SierraChart\ACS_Source\sierrachart.h:882:3: error: 'COLORREF' does not name a type C:\SierraChart\ACS_Source\sierrachart.h:909:3: error: 'COLORREF' does not name a type C:\SierraChart\ACS_Source\sierrachart.h:922:3: error: 'COLORREF' does not name a type 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 C:\SierraChart\ACS_Source\sierrachart.h:1001:4: error: 'SecondaryColor' was not declared in this scope C:\SierraChart\ACS_Source\sierrachart.h:1009:5: error: 'LevelColor' was not declared in this scope In file included from C:\SierraChart\ACS_Source\TestThingy.cpp:2:0: C:\SierraChart\ACS_Source\sierrachart.h: In member function 'long unsigned int s_SCInput_145::GetColor() const': C:\SierraChart\ACS_Source\sierrachart.h:2485:48: error: 'RGB' was not declared in this scope 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:2795:39: error: 'RGB' was not declared in this scope C:\SierraChart\ACS_Source\sierrachart.h: In member function 's_SCInput_145& s_SCInput_145::SetString(const char*)': C:\SierraChart\ACS_Source\sierrachart.h:2876:28: error: 'GetProcessHeap' was not declared in this scope C:\SierraChart\ACS_Source\sierrachart.h:2876:52: error: 'HeapFree' was not declared in this scope C:\SierraChart\ACS_Source\sierrachart.h:2888:55: error: 'GetProcessHeap' was not declared in this scope C:\SierraChart\ACS_Source\sierrachart.h:2888:90: error: 'HeapAlloc' was not declared in this scope In file included from C:\SierraChart\ACS_Source\TestThingy.cpp:2:0: C:\SierraChart\ACS_Source\sierrachart.h: At global scope: C:\SierraChart\ACS_Source\sierrachart.h:2989:2: error: 'COLORREF' does not name a type C:\SierraChart\ACS_Source\sierrachart.h: In constructor 's_NumericInformationGraphDrawTypeConfig::s_NumericInformationGraphDrawTypeConfig()': C:\SierraChart\ACS_Source\sierrachart.h:3002:3: error: 'TextBackgroundColor' was not declared in this scope C:\SierraChart\ACS_Source\sierrachart.h:3002:25: error: 'RGB' was not declared in this scope C:\SierraChart\ACS_Source\sierrachart.h: At global scope: C:\SierraChart\ACS_Source\sierrachart.h:4521:2: error: 'COLORREF' does not name a type C:\SierraChart\ACS_Source\sierrachart.h:4672:2: error: 'HWND' does not name a type C:\SierraChart\ACS_Source\sierrachart.h:5704:66: error: 'COLORREF' has not been declared C:\SierraChart\ACS_Source\sierrachart.h:5704:92: error: 'COLORREF' has not been declared C:\SierraChart\ACS_Source\sierrachart.h:5756:2: error: 'fp_ACSGDIFunction' does not name a type -- End of Build -- 23:52:52 Date Time Of Last Edit: 2013-08-24 07:06:27
|
[2013-08-24 07:10:14] |
Sierra Chart Engineering - Posts: 104368 |
Please post a copy of your source code that you are compiling.
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 |
[2013-08-24 15:52:29] |
maxpi - Posts: 181 |
// The top of every source code file must include this line #include "sierrachart.h" /***************************************************************************** For reference, please refer to the Advanced Custom Study Interface and Language documentation on the Sierra Chart website. *****************************************************************************/ // This line is required. Change the text within the quote // marks to what you want to name your group of custom studies. SCDLLName("Custom Study DLL") //This is the basic framework of a study function. SCSFExport scsf_SkeletonFunction(SCStudyGraphRef sc) { // Section 1 - Set the configuration variables and defaults if (sc.SetDefaults) { sc.GraphName = "Skeleton Function"; // During development set this flag to 1, so the DLL can be rebuilt without restarting Sierra Chart. When development is completed, set it to 0 to improve performance. sc.FreeDLL = 1; sc.AutoLoop = 1; //Auto looping is enabled. sc.Subgraph[0].Name = "Name"; sc.Subgraph[0].DrawStyle = DRAWSTYLE_LINE; sc.Input[0].Name = "Float Input"; sc.Input[0].SetFloat(0.0f); return; } // Section 2 - Do data processing here } |
[2013-08-26 16:48:30] |
maxpi - Posts: 181 |
I upgraded to 2015, no change in results. I'm compiling your code with your compiler in your programming/charting environment, can't see how I'm doing anything wrong at this end. I'm learning about Windows licensing, the windows 7 I installed on this computer is not legal on this particular machine, I'm waiting on the new os disc to arrive. Perhaps that is affecting things? |
[2013-08-26 18:17:06] |
Sierra Chart Engineering - Posts: 104368 |
We did not see a problem with this but we are updating the compiler to see if we notice the problem.
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 |
[2013-08-27 00:19:55] |
Sierra Chart Engineering - Posts: 104368 |
We cannot see why there is a problem still. Unable to duplicate. Add this to the very top line of your source code file and recompile: #undef WINVER The other thing to try is to delete all of the header files in the /ACS_Source subfolder and then update Sierra Chart by selecting Help >> Download Prerelease. 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 |
[2013-08-27 02:28:17] |
maxpi - Posts: 181 |
None of the suggestions have helped. I deleted the entire Sierrachart directory and scrubbed it's folder from the registry and reinstalled the program, still acting exactly the same. I just upgraded the hdd to a ssd... that shouldn't affect things I'd think. I'd hate to go back to the disc drive but it might work then... |
[2013-08-27 02:48:18] |
maxpi - Posts: 181 |
OK, went back to the disc drive and everything works fine! The SSD is too fast for the compiler at some point? Who knows... Is it possible to use another compiler?
|
[2013-08-27 02:54:21] |
Sierra Chart Engineering - Posts: 104368 |
This is very puzzling. We have a very fast development system with SSDs. We did not experience this. The SSD is not going to be too fast. That makes no sense. You can use the Microsoft Visual C++ compiler: http://www.sierrachart.com/index.php?l=doc/doc_VCExpress.php 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 |
To post a message in this thread, you need to log in with your Sierra Chart account: