Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) MxeExample5

 

BoostQt CreatorLubuntu

 

MXE example 5: Hello Boost.Regex is an MXE example to cross-compile a Hello Boost program from GNU/Linux to Windows.

 

Note that for me, this code does not cross-compile.

 

Technical facts

 

Operating system(s) or programming environment(s)

IDE(s):

Project type:

C++ standard:

Compiler(s):

Libraries used:

 

 

 

 

 

Qt project file: ./CppMxeExample5/CppMxeExample5.pro

 

QT       -= core
QT       -= gui
LIBS += -lboost_regex
CONFIG   += console
CONFIG   -= app_bundle
TEMPLATE = app
SOURCES += main.cpp

 

 

 

 

 

./CppMxeExample5/main.cpp

 

#include <iostream>
#include <boost/regex.hpp>

int main(int argc, char* argv[])
{
  boost::regex r("Hello Boost.Regex");
  std::cout << r.str() << '\n';
}

 

 

 

 

 

./CppMxeExample5/test.sh

 

#!/bin/sh
# Calls crosscompiletowindows and cleans up afterwards

./crosscompiletowindows.sh

rm Makefile*
#rm *.o
#rm -r release
#rm -r debug

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict

This page has been created by the tool CodeToHtml