Gamestudio Links
Zorro Links
Newest Posts
ZorroFix. ini /data and /log path
by Martin_HH. 12/02/25 11:42
Parameter selection
by jcl. 12/01/25 12:28
Zorro 2.70
by Martin_HH. 12/01/25 06:53
ZorroGPT
by TipmyPip. 11/29/25 09:38
webGL
by Ezzett. 11/27/25 23:22
Chart viewer
by clint000. 11/27/25 21:21
Black Friday discounts!
by jcl. 11/27/25 13:58
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 1,540 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Luuk, decotb, clint000, SkinnyApe, tritom
19182 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,810
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,810
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