printf compilation error when using visual c++

Posted By: 7th_zorro

printf compilation error when using visual c++ - 02/02/20 08:47

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?
Posted By: AndrewAMD

Re: printf compilation error when using visual c++ - 02/02/20 16:37

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
Posted By: 7th_zorro

Re: printf compilation error when using visual c++ - 02/03/20 01:54

Thank you for reply.

I missed that there was a implementation of _printf function in the zorroDLL source file.
© 2024 lite-C Forums