Gamestudio Links
Zorro Links
Newest Posts
New Zorro version 3.11
by jcl. 07/21/26 13:42
Lapsa's very own thread
by Lapsa. 07/18/26 13:40
Z9 getting Error 058
by madpower2000. 07/17/26 19:03
Purchase A8 full licence version
by ukgamer. 07/17/26 05:52
New Lic: When does the Support clock start?
by Student_64151. 07/17/26 01:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 2,505 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Ephraim, Student_64151
19223 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Development from different folder with Eval Shell #489552
4 hours ago
4 hours ago
Joined: Jan 2022
Posts: 75
Budapest
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

Joined: Jan 2022
Posts: 75
Budapest
Hello,

I use a separate development folder for coding my strategies, mainly because the projects may become more complex later and I want to keep them under standalone version control. After compilation, a post-build script copies the generated .dll file into Zorro’s Strategy folder, here's how.

This workflow normally works as expected.
However, after I included the Eval Shell (<evars.h> and the other stuff to _optimize), built one script successfully and try to run,
I get the following error:

Code
Zorro64 S 3.11.2
(c) oP group Germany 2026
Registered: Zorro S Subscription

3 start
Error 062: Can't open "3.cpp" (rb:2)


As I see Zorro’s built-in compiler needs access to the source .cpp file in order to extract the _optimize variables and compile the individual strategy variants. In my setup, however, the source file is not located in Zorro’s Strategy folder. It also does not have the expected strategy name, since the entry file is called main.cpp.

Is there a supported way to use the Evaluation Shell with externally compiled strategies and a separate source directory?
I would prefer to keep the Zorro Strategy folder clean while preserving my Git-based workflow, especially for potentially large, multi-file codebases.

Last edited by NorbertSz; 3 hours ago.
Re: Development from different folder with Eval Shell [Re: NorbertSz] #489553
2 hours ago
2 hours ago
Joined: Feb 2017
Posts: 1,823
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,823
Chicago
There's a lot of ways to do this.

One way is to place a symbolic link to the header (or header directory) in the Strategy folder. So you can do this in your script:

Code
#include <symlinked_extraheader.h>
or this:
Code
#include <symlinked_folder/extraheader.h>
For this, you will need Microsoft's mklink command, which is documented here:
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/mklink


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1