Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 08:04:16 +0000



Post From: Version 2151 Available: Foundation For Millisecond/Microsecond Timestamping

[2020-08-16 11:02:57]
binaryduke - Posts: 353
I have a simple custom study that compares the current bar date/time to session times and also stores the last processed date/time value in PersistentSCDateTime variable.

This compiles and works just fine on v2138.

Compiling the same study on v2151 provides the following error during remote compilation:


-- Starting remote build of Custom Studies Source files: DATETIMESTUDY.cpp. 64-bit -- 11:54:42
Allow time for the server to compile the files and build the DLL.

The remote build did not succeed. Result:

In file included from scstructures.h:98:0,
from sierrachart.h:22,
from DATETIMESTUDY.cpp:1:
scdatetime.h: In function 'constexpr int64_t ADJUST(int64_t, int64_t)':
scdatetime.h:147:1: error: body of constexpr function 'constexpr int64_t ADJUST(int64_t, int64_t)' not a return-statement
}

^
scdatetime.h: In function 'constexpr double ADJUST(double, double)':
scdatetime.h:156:1: error: body of constexpr function 'constexpr double ADJUST(double, double)' not a return-statement
}

^

-- End of Build -- 11:54:44

Date Time Of Last Edit: 2020-08-16 11:03:42