Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/08/26 18:50
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, clint000), 8,485 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 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,813
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

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