Support Board
Date/Time: Mon, 10 Feb 2025 01:54:19 +0000
Compiler Issues
View Count: 835
[2020-08-18 13:58:49] |
rahul - Posts: 167 |
Hello, something is wrong with your compiler. My exact same code was compiling yesterday but today I am getting this issue: (I using the inbuilt SC Compiler) I have tried with both version 2130 and 2150. Please fix compiler issues. Anchor_18Aug2020_1.cpp: In function 'int ModifyOrder(SCStudyInterfaceRef, int, float)':
Anchor_18Aug2020_1.cpp:697:1: warning: control reaches end of non-void function [-Wreturn-type] 697 | } | ^ Anchor_18Aug2020_1.cpp: In function 'int CancelOrder(SCStudyInterfaceRef, int)': Anchor_18Aug2020_1.cpp:722:1: warning: control reaches end of non-void function [-Wreturn-type] 722 | } | ^ User contributed studies are also not working, even though I have version 2149 and higher. Date Time Of Last Edit: 2020-08-18 18:02:05
|
[2020-08-18 19:17:47] |
|
Please look at these errors carefully and think before you make postings like this. You need to resolve the problem with your own code. There is no issue with the compiler at all. Do not post again further about this. You need to resolve the problem in your own code. If you post again about this, we are deleting your posts. And regarding user contributed studies, use the latest pre-release for support for those: Software Download: Fast Update 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 Date Time Of Last Edit: 2020-08-18 19:19:03
|
[2020-08-18 19:25:04] |
rahul - Posts: 167 |
I have clearly mentioned there is no issue with my code as it was working yesterday and then stopped working this morning. You guys have made a change on your compiler side. I can compile the code in Visual C++ compiler, but its not compiling with the SC compiler. Don't tell me about my mistake till actually looking into the issue! You guys are rude at times! |
[2020-08-18 19:37:46] |
ForgivingComputers.com - Posts: 999 |
Anchor_18Aug2020_1.cpp: In function 'int ModifyOrder(SCStudyInterfaceRef, int, float)':
Anchor_18Aug2020_1.cpp:697:1: warning: control reaches end of non-void function [-Wreturn-type] 697 | } | ^ Anchor_18Aug2020_1.cpp: In function 'int CancelOrder(SCStudyInterfaceRef, int)': Anchor_18Aug2020_1.cpp:722:1: warning: control reaches end of non-void function [-Wreturn-type] 722 | } | ^ These are warnings. Are you sure it did not compile? |
[2020-08-18 19:39:22] |
rahul - Posts: 167 |
Exactly Bradh...these are warnings but its not compiling this morning on the SC compiler. These guys at SC need to acknowledge it. |
[2020-08-18 19:53:04] |
rahul - Posts: 167 |
Anyway, I fixed it by rewriting that function with explicit returns.
|
[2020-08-19 19:33:58] |
|
Really?: ! You guys are rude at times! Not at all. We are just simply telling the truth, and do not want false information posted.You are telling us a compiler we did not develop is "broken" and to "fix it". There has been a compiler update on the server, and often that means that there is stronger checking for invalid code. There simply is no problem at all. The compiler works fine. The issue is with your code. And those are only warnings anyway. 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 Date Time Of Last Edit: 2020-08-19 19:34:20
|
[2020-08-19 19:45:30] |
rahul - Posts: 167 |
I have been a customer for many years and have been writing code on the SC platform for over 2 years. I know the difference between a warning and an error, but the compiler refused to generate a DLL file. Anyway I re-wrote my function to fix it. I didn't say you guys wrote the compiler, I merely asked to review it. I should have posted an image of the warning not compiling. Again, there was no issue with my code as it was compiling 2 days ago and not yesterday until I re-wrote my function. There might have been a compiler update on the server, which could have caused it. |
To post a message in this thread, you need to log in with your Sierra Chart account: