garyfritz wrote:OK, this is getting stranger.
As I said, this indicator with #includes compiles fine in Metaeditor but not SciTE. Not my SciTE anyway. I tried downloading and installing a fresh SciTE -- no improvement.
I've been doing more indicators than EAs lately. The last EAs I compiled were ShelleyNOW and the BJS Basket EA. I just compiled them again and it worked fine -- and they include stdlib.mqh and WinUser32.mqh. If I copy the identical #include to the indicator I'm trying to compile, it fails. Is there something different about #includes in an indicator?
I looked at stdlib.mqh. The first line in it says "#import <stdlib.ex4>". stdlib.ex4 doesn't exist anywhere in this Empty4 tree. If it's trying to import it, why don't the ShelleyNOW / BJS compilations hit an error?
I thought, OK, it wants stdlib.ex4. So I'll compile stdlib.mq4. Didn't expect it to do much, and it didn't. No compile errors, but no .ex4 output either.
So I found a stdlib.ex4 in an older Empty4 folder under experts\libraries. Copied it to experts\libraries in my Empty4 and tried again. No improvement.
I be confoozed...
In response to this, I loaded up one of the umpteen custom indis and added
Code: Select all
#include <WinUser32.mqh>
#include <stdlib.mqh>
to it.
Now, Gary, you know that I
love the rare occasion when I can get one over on you and will crow to the heavens when this happens (heroically resists the opportunity to mention the self-banning incident

)
On this occasion, no, sadly. ScITE threw up the same error message you got.
Hey ho.
Luckily for me, this is Someone Else's Problem - you know my antipathy towards indi code - but definitely a problem.

Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed
Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.