Page 1 of 1

FT4 VS 2019 compile errors in standard headers

Posted: Thu Nov 26, 2020 10:55 pm
by imamushroom
Hello,

I'm compiling this code: https://forextester.com/forum/viewtopic.php?f=3&t=21437&p=32487&hilit=mtf#p32487 under the latest VS2019 and finding errors in the standard TechnicalFunctions.h and IndicatorInterfaceUnit.h headers. How do I fix them?

Here's the errors:

Code: Select all

1>C:\ForexTester4\Examples\Indicators\C++\IndicatorInterfaceUnit.h(789,29): error C2440: 'default argument': cannot convert from 'const char [6]' to 'char *'
1>C:\ForexTester4\Examples\Indicators\C++\IndicatorInterfaceUnit.h(789,22): message : Conversion from string literal loses const qualifier (see /Zc:strictStrings)
1>C:\ForexTester4\Examples\Indicators\C++\IndicatorInterfaceUnit.h(791,29): error C2440: 'default argument': cannot convert from 'const char [6]' to 'char *'
1>C:\ForexTester4\Examples\Indicators\C++\IndicatorInterfaceUnit.h(791,22): message : Conversion from string literal loses const qualifier (see /Zc:strictStrings)
1>C:\ForexTester4\Examples\Indicators\C++\IndicatorInterfaceUnit.h(793,29): error C2440: 'default argument': cannot convert from 'const char [6]' to 'char *'
1>C:\ForexTester4\Examples\Indicators\C++\IndicatorInterfaceUnit.h(793,22): message : Conversion from string literal loses const qualifier (see /Zc:strictStrings)
1>C:\ForexTester4\Examples\Indicators\C++\IndicatorInterfaceUnit.h(795,29): error C2440: 'default argument': cannot convert from 'const char [6]' to 'char *'
1>C:\ForexTester4\Examples\Indicators\C++\IndicatorInterfaceUnit.h(795,22): message : Conversion from string literal loses const qualifier (see /Zc:strictStrings)
1>C:\ForexTester4\Examples\Indicators\C++\IndicatorInterfaceUnit.h(797,29): error C2440: 'default argument': cannot convert from 'const char [6]' to 'char *'
1>C:\ForexTester4\Examples\Indicators\C++\IndicatorInterfaceUnit.h(797,22): message : Conversion from string literal loses const qualifier (see /Zc:strictStrings)
1>C:\ForexTester4\Examples\Indicators\C++\TechnicalFunctions.h(45,56): error C2440: 'default argument': cannot convert from 'const char [1]' to 'char *'
1>C:\ForexTester4\Examples\Indicators\C++\TechnicalFunctions.h(45,54): message : Conversion from string literal loses const qualifier (see /Zc:strictStrings)
1>C:\ForexTester4\Examples\Indicators\C++\TechnicalFunctions.h(48,50): error C2440: 'default argument': cannot convert from 'const char [1]' to 'char *'
1>C:\ForexTester4\Examples\Indicators\C++\TechnicalFunctions.h(48,48): message : Conversion from string literal loses const qualifier (see /Zc:strictStrings)
1>C:\ForexTester4\Examples\Indicators\C++\TechnicalFunctions.h(170,53): error C2440: '=': cannot convert from 'const char [15]' to 'char *'
1>C:\ForexTester4\Examples\Indicators\C++\TechnicalFunctions.h(170,37): message : Conversion from string literal loses const qualifier (see /Zc:strictStrings)
1>C:\ForexTester4\Examples\Indicators\C++\TechnicalFunctions.h(185,46): error C2440: '=': cannot convert from 'const char [8]' to 'char *'
1>C:\ForexTester4\Examples\Indicators\C++\TechnicalFunctions.h(185,37): message : Conversion from string literal loses const qualifier (see /Zc:strictStrings)


Thanks