FT4 VS 2019 compile errors in standard headers

How to create strategies and indicators
Message
Author
imamushroom
Posts: 23
Joined: Wed Jan 20, 2016 2:52 pm

FT4 VS 2019 compile errors in standard headers

#1 Postby imamushroom » Thu Nov 26, 2020 10:55 pm

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

Return to “FT API”

Who is online

Users browsing this forum: No registered users and 1 guest