Menu

Using ZenXml with Codeblocks

2014-11-04
2014-11-05
  • Sergio Ferrari

    Sergio Ferrari - 2014-11-04

    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

     
  • Zenju

    Zenju - 2014-11-04

    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
  • Sergio Ferrari

    Sergio Ferrari - 2014-11-05

    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

     
  • Zenju

    Zenju - 2014-11-05

    Which specific version of MinGW are you using, IOW where did you get it from?

     
  • Sergio Ferrari

    Sergio Ferrari - 2014-11-05

    I reinstalled Codeblocks after downloading it from sourgeforge. My question is: _wfopen() is microsoft specific function?

    Sergio

     

    Last edit: Sergio Ferrari 2014-11-05
  • Zenju

    Zenju - 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".

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.