Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, VoroneTZ), 831 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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: 82
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 82
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,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
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: 82
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 82
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