EA Errors when calling functions from stdlib

 

I get the following error message when calling the ErrorDescription function from the stdlib:

expert function calls are not allowed; 'stdlib'-'ErrorDescription'

This line is in my EA: #include <stdlib.mqh>

I've never had this problem before.

Currently running build 402.

Please help. Thanks.

 
options -> Expert Advistors -> Allow DLL imports ?
 
WHRoeder:
options -> Expert Advistors -> Allow DLL imports ?
That was the first thing I looked at. Allow DLL imports is enabled.
 

stdlib using stdlib.ex4

#import "stdlib.ex4"
so open libraries\stdlib.mq4 compile and than recompile ur ea
 

it's

#import ex4
function(s)

instead try

#include "stdlib.mqh"

 
#import "stdlib.ex4"

This line already exists in the header file.

 

Not to sound presumptious or anything, but mine works (tested and working) like

#include <stdlib.mqh>

Also running build 402. Problem must be elsewhere. Try recompiling (which you probably did), ammmm rechecking whether the file didnt get deleted by any chance.... I dont know, but it must be some silly reason :))

Reason: