Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,758 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 5
V
Verner999 Offline OP
Newbie
Verner999  Offline OP
Newbie
V

Joined: Aug 2024
Posts: 5
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,806
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,806
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: 5
V
Verner999 Offline OP
Newbie
Verner999  Offline OP
Newbie
V

Joined: Aug 2024
Posts: 5
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