Login Page - Create Account

Support Board


Date/Time: Mon, 23 Dec 2024 16:52:40 +0000



Win 10 Build Custom Studies DLL issue, I think

View Count: 1062

[2015-10-12 15:21:14]
jsob - Posts: 39
I have been successfully developing/building a custom study in Win 7 for quite some time. I installed Win 10 yesterday and today I cannot recompile my study. I get the same result whether I use version 1307 or the pre-release 1308. I do not know how to interpret this. The report:

-- Starting build of Custom Studies Source files: RSD_19_June_2014.cpp. -- 11:08:50

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

In file included from C:\SierraChart\ACS_Source\sierrachart.h:15:0,
from C:\SierraChart\ACS_Source\RSD_19_June_2014.cpp:1:
C:\SierraChart\ACS_Source\RSD_19_June_2014.cpp: In function 'void scsf_LSMA_WTMA_Lines(SCStudyInterfaceRef)':
C:\SierraChart\ACS_Source\scstructures.h:48:28: error: expected unqualified-id before string constant
#define SCDLLEXPORT extern "C" __declspec(dllexport)
^
C:\SierraChart\ACS_Source\scstructures.h:51:20: note: in expansion of macro 'SCDLLEXPORT'
#define SCSFExport SCDLLEXPORT void SCDLLCALL // Use SCSFExport when defining a study function
^
C:\SierraChart\ACS_Source\RSD_19_June_2014.cpp:3145:1: note: in expansion of macro 'SCSFExport'
SCSFExport scsf_15_LSMA_plot(SCStudyInterfaceRef sc)
^
C:\SierraChart\ACS_Source\RSD_19_June_2014.cpp:3983:1: error: expected '}' at end of input
}
^
-- End of Build -- 11:08:50
[2015-10-12 17:33:28]
Sierra Chart Engineering - Posts: 104368
This does not look like it would be Windows 10 specific.

Not sure this will help, but reinstall the compiler again by following these instructions:
https://www.sierrachart.com/index.php?page=doc/doc_CreatingDLLs.html#ReinstallingCPPCompiler


The next step is to compile the Template.cpp file in the /ACS_Source folder and see if you get the same errors.
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: 2015-10-13 17:02:00
[2015-10-12 23:26:19]
jsob - Posts: 39
Followed your suggestion twice with same result:
-- Starting build of Custom Studies Source files: RSD_19_June_2014.cpp. -- 19:22:35

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

In file included from C:\SierraChart\ACS_Source\sierrachart.h:15:0,
from C:\SierraChart\ACS_Source\RSD_19_June_2014.cpp:1:
C:\SierraChart\ACS_Source\RSD_19_June_2014.cpp: In function 'void scsf_LSMA_WTMA_Lines(SCStudyInterfaceRef)':
C:\SierraChart\ACS_Source\scstructures.h:48:28: error: expected unqualified-id before string constant
#define SCDLLEXPORT extern "C" __declspec(dllexport)
^
C:\SierraChart\ACS_Source\scstructures.h:51:20: note: in expansion of macro 'SCDLLEXPORT'
#define SCSFExport SCDLLEXPORT void SCDLLCALL // Use SCSFExport when defining a study function
^
C:\SierraChart\ACS_Source\RSD_19_June_2014.cpp:3145:1: note: in expansion of macro 'SCSFExport'
SCSFExport scsf_15_LSMA_plot(SCStudyInterfaceRef sc)
^
C:\SierraChart\ACS_Source\RSD_19_June_2014.cpp:3983:1: error: expected '}' at end of input
}
^
-- End of Build -- 19:22:35
===============================================================
Following is the script produced by the compilation process:
Date Time Of Last Edit: 2015-10-13 17:01:24
[2015-10-13 13:07:50]
jsob - Posts: 39
I am profoundly sorry for wasting your time. The error was all my own, a missing curly brace. As a rank amateur I was overwhelmed by the compiler references and did not trouble myself to examine the reported coding error. It was only after I installed MS Visual C++ Visual Express, that I began to look seriously for the error. I am truly sorry for wasting your time.
Thank you for an excellent product...and your patience.
[2015-10-13 17:04:19]
Sierra Chart Engineering - Posts: 104368
OK this is good, this is why we had said to compile the Template.cpp file which is located in the /ACS_Source folder.
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:

Login

Login Page - Create Account