Mercurial > mxe-octave
view src/tinyxml-test.cpp @ 3289:b28756fd131c
* src/build-msvctools/cc-msvc.cc: Allow to preprocess-only.
Make sure to run the compiler, and not the linker, when doing only
pre-processing. Required to compile libgpg_error, which pre-processes
a header file.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Thu, 07 Nov 2013 13:15:25 -0500 |
parents | 99516e73b368 |
children |
line wrap: on
line source
/* * This file is part of MXE. * See index.html for further information. */ #include <iostream> #include <tinyxml.h> int main(int argc, char *argv[]) { if (argc != 2) { std::cerr << "Usage: tinyxml-test <xml-file>" << std::endl; return 1; } std::string fpn = argv[1]; TiXmlDocument doc(fpn); if (!doc.LoadFile()) { std::cerr << "failed to load " << fpn << std::endl; return 1; } return 0; }