Mercurial > mxe-octave
changeset 900:27fc875921a2
add test program for package boost
author | Volker Grabsch <vog@notjusthosting.com> |
---|---|
date | Sun, 25 Apr 2010 13:22:44 +0200 |
parents | d74f83417a91 |
children | 6178b1548a2f |
files | src/boost-test.cpp src/boost.mk |
diffstat | 2 files changed, 22 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/boost-test.cpp Sun Apr 25 13:22:44 2010 +0200 @@ -0,0 +1,17 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html for further information. */ + +#include <iostream> +#include <boost/archive/xml_oarchive.hpp> + +int main(int argc, char *argv[]) +{ + (void)argc; + (void)argv; + + boost::archive::xml_oarchive oa(std::cout); + std::string s = "\n\n Hello, World!\n\n"; + oa << BOOST_SERIALIZATION_NVP(s); + + return 0; +}
--- a/src/boost.mk Sun Apr 25 13:22:09 2010 +0200 +++ b/src/boost.mk Sun Apr 25 13:22:44 2010 +0200 @@ -43,4 +43,9 @@ -sEXPAT_INCLUDE='$(PREFIX)/$(TARGET)/include' \ -sEXPAT_LIBPATH='$(PREFIX)/$(TARGET)/lib' \ stage install + + '$(TARGET)-g++' \ + -W -Wall -Werror -std=c++98 -U__STRICT_ANSI__ -pedantic \ + '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-boost.exe' \ + -lboost_serialization-mt endef