Hello guys,
I'm trying to learn ZenXml using codeblocks 13.12 (MinGW 4.7.1), following the Quick Start page.
I've defined the ZEN_WIN preprocessor macro.
Compiling, I get the following error from zenxml/io.h (line 51): '::_wfopen' has not been declared
Can anyone help me?
Sergio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
_wfopen is microsoft-specific but it should be available in your built, too. I just tested the download link you gave and didn't find any problems compiling the Zen::xml quick-start example with Codeblocks and the provided version of MinGW. The _wfopen is declared in "include/stdio.h".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello guys,
I'm trying to learn ZenXml using codeblocks 13.12 (MinGW 4.7.1), following the Quick Start page.
I've defined the ZEN_WIN preprocessor macro.
Compiling, I get the following error from zenxml/io.h (line 51): '::_wfopen' has not been declared
Can anyone help me?
Sergio
Hi Sergio,
beginning with the newest update zen::Xml needs at least GCC 4.8. Updating to such a newer compiler should fix this issue.
Last edit: Zenju 2014-11-04
Hi Zenju
I updated the GCC version to 4.8.1 and ZenXml from 2.0 to 2.1 but the error remains the same.
Sergio
Which specific version of MinGW are you using, IOW where did you get it from?
I reinstalled Codeblocks after downloading it from sourgeforge. My question is: _wfopen() is microsoft specific function?
Sergio
Last edit: Sergio Ferrari 2014-11-05
_wfopen is microsoft-specific but it should be available in your built, too. I just tested the download link you gave and didn't find any problems compiling the Zen::xml quick-start example with Codeblocks and the provided version of MinGW. The _wfopen is declared in "include/stdio.h".