Login Page - Create Account

Support Board


Date/Time: Fri, 10 Jan 2025 16:41:01 +0000



Error compiling

View Count: 1850

[2016-09-21 04:56:52]
User15952 - Posts: 132
C:\SierraChart\ACS_Source\Levels.cpp(7): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory

I have never had this before
[2016-09-21 05:12:46]
Sierra Chart Engineering - Posts: 104368
Is that header file being used in the source code file?
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
[2016-09-21 05:58:07]
User15952 - Posts: 132
All I did was recompile a previous cpp which was working. I changed the sc.FreeDLL = 1

And now I get that error. If I comment it out I get the error below;

C:\SierraChart\ACS_Source>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
Levels.cpp
C:\SierraChart\ACS_Source\Levels.cpp(165): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
C:\SierraChart\ACS_Source\Levels.cpp(183): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
C:\SierraChart\ACS_Source\Levels.cpp(196): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
C:\SierraChart\ACS_Source\Levels.cpp(209): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
C:\SierraChart\ACS_Source\Levels.cpp(254): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
C:\SierraChart\ACS_Source\Levels.cpp(354): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
C:\SierraChart\ACS_Source\Levels.cpp(391): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
C:\SierraChart\ACS_Source\Levels.cpp(406): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
C:\SierraChart\ACS_Source\Levels.cpp(433): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
C:\SierraChart\ACS_Source\Levels.cpp(446): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
C:\SierraChart\ACS_Source\Levels.cpp(459): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
C:\SierraChart\ACS_Source\Levels.cpp(475): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
C:\SierraChart\ACS_Source\Levels.cpp(595): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
C:\SierraChart\ACS_Source\Levels.cpp(659): error C3861: 'getline': identifier not found
C:\SierraChart\ACS_Source\Levels.cpp(687): error C2039: 'getline': is not a member of 'std'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\algorithm(14): note: see declaration of 'std'
C:\SierraChart\ACS_Source\Levels.cpp(687): error C3861: 'getline': identifier not found
C:\SierraChart\ACS_Source\Levels.cpp(790): error C3861: 'getline': identifier not found
C:\SierraChart\ACS_Source\Levels.cpp(824): error C2039: 'getline': is not a member of 'std'
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\algorithm(14): note: see declaration of 'std'
C:\SierraChart\ACS_Source\Levels.cpp(824): error C3861: 'getline': identifier not found
-- End of Build -- 15:56:23
[2016-09-21 06:01:54]
Sierra Chart Engineering - Posts: 104368
Whether sc.FreeDLL = 1 is commented out or not, we do not see how that has any effect on the warnings or errors. It does not make any sense to us.

You need to solve all of these. We do not provide programming help unless you are willing to pay for that time and we can allocate the time.
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: 2016-09-21 06:02:09
[2016-09-21 06:29:24]
User15952 - Posts: 132
You guys have obviously changed something, since I already have a complied dll from that exact code.
[2016-09-21 06:36:32]
Sierra Chart Engineering - Posts: 104368
You are the one who wrote the source code. We also do not develop the compilers that Sierra Chart uses. These compiler warnings and errors relate to your source code and the particular compiler being used.

The only thing changed is that Sierra Chart now is using the Microsoft Visual C++ compiler.

What the problem is, is not obvious to us for various reasons.
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: 2016-09-21 06:37:21
[2016-09-26 07:26:45]
User15952 - Posts: 132
FYI - I just tried it on VERSION 1406 and IT WORKED!!!

So it is something you guys have done in the updates. Seriously a lot of crap you guys talk about source code


http://i.imgur.com/HIEtweL.png
Date Time Of Last Edit: 2016-09-26 07:29:36
[2016-09-26 07:41:06]
Sierra Chart Engineering - Posts: 104368
No not at all:
Seriously a lot of crap you guys talk about source code

There is nothing we possibly could have done ourselves. As we said, the latest versions of Sierra Chart are now using the Microsoft Visual C++ compiler.

So you need to look at your source code and what it is doing, and resolve the problem. You need to change the source code. There is nothing we need to do. That should be obvious to you.

Do you really think that we do not know what we are talking about? We thought you should be able to figure it out.
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: 2016-09-26 07:42:42
[2016-09-26 07:44:36]
Sierra Chart Engineering - Posts: 104368
This is the error message you are getting:
C:\SierraChart\ACS_Source\Levels.cpp(659): error C3861: 'getline': identifier not found

So you need to ask yourself, what is the purpose of using this function and where does it exist?

Is it a function that you defined?

Is it a function in the standard C++ library? Therefore, are you including the correct header file? You need to check the reference material for it make sure you are using it properly.
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: 2016-09-26 07:45:00
[2016-09-26 07:48:51]
User15952 - Posts: 132
This keeps popping up as an issue with 1460

Cannot open include file: 'unistd.h


No such problem exists with 1406, it compiles perfectly with no errors.

I am happy to post youtube videos showing the different version and the way they compile, with errors and without. It is not just one cpp doing it
[2016-09-26 07:55:11]
Sierra Chart Engineering - Posts: 104368
If you show us the headers that you are including at the top of your source code file and the one line of code that is causing this error:

C:\SierraChart\ACS_Source\Levels.cpp(659): error C3861: 'getline': identifier not found

We should then be able to tell you what the problem is.
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
[2016-09-26 07:55:48]
Sierra Chart Engineering - Posts: 104368
This is not helpful for us:

I am happy to post youtube videos showing the different version and the way they compile, with errors and without. It is not just one cpp doing it

Refer to the prior post #11.
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: 2016-09-26 08:00:03

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account