(IMPORTANT) upgrade to build 684 = 71 bugs in the proper code

 

Dear MetaQuotes,

After today MT5 upgrade, my code that was properly compiling on the previous build, on build 684 generated  71 errors during compilation, i.e. the following ones (which could easily point you to affected areas):

 

 'static' - syntax error SecMan.mqh 25 4

'MqlTradeTransaction' - declaration without type UnivEA.mqh 77 41

'SYMBOL_SWAP_MODE_POINTS' - undeclared identifier SymbolInfo.mqh 460 12

'SYMBOL_SWAP_MODE_POINTS' - constant expression required SymbolInfo.mqh 460 12

'SYMBOL_SWAP_MODE_CURRENCY_SYMBOL' - undeclared identifier SymbolInfo.mqh 463 12

'SYMBOL_SWAP_MODE_CURRENCY_SYMBOL' - constant expression required SymbolInfo.mqh 463 12

'SYMBOL_SWAP_MODE_CURRENCY_MARGIN' - undeclared identifier SymbolInfo.mqh 466 12

'SYMBOL_SWAP_MODE_CURRENCY_MARGIN' - constant expression required SymbolInfo.mqh 466 12

'SYMBOL_SWAP_MODE_CURRENCY_DEPOS…' - undeclared identifier SymbolInfo.mqh 469 12

'SYMBOL_SWAP_MODE_CURRENCY_DEPOS…' - constant expression required SymbolInfo.mqh 469 12

'SYMBOL_SWAP_MODE_INTEREST_CURRE…' - undeclared identifier SymbolInfo.mqh 472 12

'SYMBOL_SWAP_MODE_INTEREST_CURRE…' - constant expression required SymbolInfo.mqh 472 12

'SYMBOL_SWAP_MODE_INTEREST_OPEN' - undeclared identifier SymbolInfo.mqh 475 12

'SYMBOL_SWAP_MODE_INTEREST_OPEN' - constant expression required SymbolInfo.mqh 475 12

'SYMBOL_SWAP_MODE_REOPEN_CURRENT' - undeclared identifier SymbolInfo.mqh 478 12

'SYMBOL_SWAP_MODE_REOPEN_CURRENT' - constant expression required SymbolInfo.mqh 478 12

'SYMBOL_SWAP_MODE_REOPEN_BID' - undeclared identifier SymbolInfo.mqh 481 12

'SYMBOL_SWAP_MODE_REOPEN_BID' - constant expression required SymbolInfo.mqh 481 12

'TERMINAL_CPU_CORES' - undeclared identifier TerminalInfo.mqh 118 36

'TERMINAL_CPU_CORES' - can't convert enum TerminalInfo.mqh 118 36

'TERMINAL_MEMORY_PHYSICAL' - undeclared identifier TerminalInfo.mqh 125 36

'TERMINAL_MEMORY_PHYSICAL' - can't convert enum TerminalInfo.mqh 125 36

'TERMINAL_MEMORY_TOTAL' - undeclared identifier TerminalInfo.mqh 132 36

'TERMINAL_MEMORY_TOTAL' - can't convert enum TerminalInfo.mqh 132 36

'TERMINAL_MEMORY_AVAILABLE' - undeclared identifier TerminalInfo.mqh 139 36

'TERMINAL_MEMORY_AVAILABLE' - can't convert enum TerminalInfo.mqh 139 36

'TERMINAL_MEMORY_USED' - undeclared identifier TerminalInfo.mqh 146 36

'TERMINAL_MEMORY_USED' - can't convert enum TerminalInfo.mqh 146 36

'TERMINAL_X64' - undeclared identifier TerminalInfo.mqh 153 37

'TERMINAL_X64' - can't convert enum TerminalInfo.mqh 153 37

'TERMINAL_OPENCL_SUPPORT' - undeclared identifier TerminalInfo.mqh 160 36

'TERMINAL_OPENCL_SUPPORT' - can't convert enum TerminalInfo.mqh 160 36

'TERMINAL_DISK_SPACE' - undeclared identifier TerminalInfo.mqh 167 36

'TERMINAL_DISK_SPACE' - can't convert enum TerminalInfo.mqh 167 36

'TRADE_TRANSACTION_ORDER_ADD' - undeclared identifier UnivEA.mq5 638 12

'TRADE_TRANSACTION_ORDER_ADD' - constant expression required UnivEA.mq5 638 12

'TRADE_TRANSACTION_ORDER_UPDATE' - undeclared identifier UnivEA.mq5 641 12

'TRADE_TRANSACTION_ORDER_UPDATE' - constant expression required UnivEA.mq5 641 12

'TRADE_TRANSACTION_ORDER_DELETE' - undeclared identifier UnivEA.mq5 644 12

'TRADE_TRANSACTION_ORDER_DELETE' - constant expression required UnivEA.mq5 644 12

'TRADE_TRANSACTION_DEAL_ADD' - undeclared identifier UnivEA.mq5 647 12

'TRADE_TRANSACTION_DEAL_ADD' - constant expression required UnivEA.mq5 647 12

'TRADE_TRANSACTION_HISTORY_ADD' - undeclared identifier UnivEA.mq5 650 12

'TRADE_TRANSACTION_HISTORY_ADD' - constant expression required UnivEA.mq5 650 12

'TRADE_TRANSACTION_REQUEST' - undeclared identifier UnivEA.mq5 653 12

'TRADE_TRANSACTION_REQUEST' - constant expression required UnivEA.mq5 653 12

 

 

Looks like someone in MQ has created build 684 on much older revision or so.... because all above changes were introduced within last several official builds.
 
Enigma71fx:

Dear MetaQuotes,

After today MT5 upgrade, my code that was properly compiling on the previous build, on build 684 generated  71 errors during compilation, i.e. the following ones (which could easily point you to affected areas):

Hi Enigma71fx,

I think you have .mqh file association problem. Please take a look at your.mqh file, what is the default program to open your .mqh file ?, your .mqh should not associated with any program

Read this case and use it to solve your problem https://www.mql5.com/en/forum/7215#comment_279747

Please update if problem still exist or resolved so it does not confuse other forumer. 

:D 

can't open "C:\Users\Antonio\AppData\Roaming\MetaQuotes\Terminal\F121571A298C42AA81091954EA9924F7\MQL5\include\Object.mqh" include file	SymbolInfo.mqh	6	11
can't open "C:\Users\Antonio\AppData\Roaming\MetaQuotes\Terminal\F121571A298C42AA81091954EA9924F7\MQL5\include\Object.mqh" include file SymbolInfo.mqh 6 11
  • www.mql5.com
Good afternoon, I am newbie and I would like if someone could help me in developing an EA with metatrader 5.
 
onewithzachy:

Hi Enigma71fx,

I think you have .mqh file association problem. Please take a look at your.mqh file, what is the default program to open your .mqh file ?, your .mqh should not associated with any program. 

Read this case and use it to solve your problem https://www.mql5.com/en/forum/7215#comment_279747

Please update if problem still exist or resolved so it does not confuse other forumer. 

:D 

MetaEditor is set as a default program to open .mqh files.. I will check if PC restart will change this, however this would be strange to say the least - if a terminal restart is not enough for proper functioning after the update, then PC reboot should be forced or at least suggested to the end user after an update.
 

OK - it seems that PC restart has resolved this issue, everything compiles fine now.

However - MetaQuotes - if such situation occurs, maybe you should prompt the user to reboot PC as well, not only to restart the terminal?? Because after doing only terminal reboot as the LiveUpdate suggests, I encountered such a major problem as described in the first post.

Reason: