Unresolved import function call

 

Hi,

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

#property library
#property copyright "Copyright 2013, Mario Semper"
#property link      "https://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 

 
Hi, I tried with your example code and all is working well. So I guess it's not representative of your real issue.
 

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 

 
#import "xx.ex5"
   int getInt(void);
#import
extern int p;
int OnInit()
{
   p=getInt();
   Print( p );
   return(INIT_SUCCEEDED);
}
Reason: