Download MetaTrader 5

Unresolved import function call

To add comments, please log in or register
Make profit on MQL5 services. It's easy!
Mario Semper
238
Mario Semper 2013.10.20 19:03 

Hi,

 i've implmented a library "xx" with the following content:

#property library
#property copyright "Copyright 2013, Mario Semper"
#property link      "http://www.mql5.com"
#property version   "1.00"


int getInt(void) export {
   return 11;
}

now, i would like to use this library in a EA:

#import "xx.ex5"
   int getInt(void);
#import

int OnInit()
{
Print(getInt());
return(INIT_SUCCEEDED);
}

  but i got this errors:

2013.10.20 18:35:26 ExtendedTradeLevels (AUDCHF,D1) unresolved import function call

2013.10.20 18:35:26 ExtendedTradeLevels (AUDCHF,D1) Cannot find 'getInt' in 'xx.ex5'

 

Any ideas?

 

Thanks Mario 

Alain Verleyen
Moderator
30723
Alain Verleyen 2013.10.20 19:05  
Hi, I tried with your example code and all is working well. So I guess it's not representative of your real issue.
Mario Semper
238
Mario Semper 2013.10.20 19:10  

i found the problem, i had an EA "xx" and a library "xx". I think the expert advisor was loaded and not the lib.

Thanks mario 

To add comments, please log in or register