Gamestudio Links
Zorro Links
Newest Posts
Historical Data with the 64bit FXCM Plugin
by Martin_HH. 01/22/26 16:44
ZorroGPT
by TipmyPip. 01/22/26 12:25
MRC.c and WFO
by 11honza11. 01/22/26 10:33
Buy A8 Pro Version
by Spirit. 01/21/26 21:37
Bar missing bug?
by jcl. 01/19/26 10:47
400 free seamless texture pack downl. here !
by NeoDumont. 01/18/26 19:09
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Martin_HH, TipmyPip), 9,614 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Castromangos, Quantum, stephensdeborah, promfast, joe_kane
19193 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem with compilation #488336
08/14/24 20:11
08/14/24 20:11
Joined: Aug 2024
Posts: 6
V
Verner999 Offline OP
Newbie
Verner999  Offline OP
Newbie
V

Joined: Aug 2024
Posts: 6
Hello everybody!

I'm beginning to write my first scripts for Zorro. I wanted to place my indicator function into the separate file my_indicators.h and then include this file into the main script file. But I failed to compile this script, got this error message from Zorro:

Error in 'my_indicators.h' line 1:
'var' undeclared identifier
< var EMAWOL(vars Data, int Period)
>.

What do I do wrong?

Re: Problem with compilation [Re: Verner999] #488337
08/14/24 20:23
08/14/24 20:23
Joined: Feb 2017
Posts: 1,811
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,811
Chicago
Once you include a file, your default includes are disabled. Include zorro.h or default.c first.

Re: Problem with compilation [Re: Verner999] #488338
08/14/24 20:27
08/14/24 20:27
Joined: Aug 2024
Posts: 6
V
Verner999 Offline OP
Newbie
Verner999  Offline OP
Newbie
V

Joined: Aug 2024
Posts: 6
Thank you very much! smile

Last edited by Verner999; 08/14/24 20:28.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1