Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Akow, AndrewAMD, Quad), 733 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
printf compilation error when using visual c++ #478989
02/02/20 08:47
02/02/20 08:47
Joined: Oct 2018
Posts: 94
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 94
Hi,

When using visual c++ for strategy developement, "printf" cause some compilation error.

#include <zorro.h>

In this zorro.h header file, there is a definition as below.
#define printf _printf

This cause visual c++ compile error, so I comment this, then it seems ok.
But to display logs to zorro output window, This line may be needed.
How to solve this problem?

Re: printf compilation error when using visual c++ [Re: 7th_zorro] #478998
02/02/20 16:37
02/02/20 16:37
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
You need that line to patch printf to Zorro's print system.

If you are getting errors, you need to start over.

Follow the directions down to the last letter. Are you using Visual Studio 2017 as prescribed??
https://zorro-project.com/manual/en/dlls.htm

Re: printf compilation error when using visual c++ [Re: AndrewAMD] #479003
02/03/20 01:54
02/03/20 01:54
Joined: Oct 2018
Posts: 94
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 94
Thank you for reply.

I missed that there was a implementation of _printf function in the zorroDLL source file.

Last edited by 7th_zorro; 02/03/20 01:54.

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1