Go back to Richel Bilderbeek's homepage.

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

 

 

 

 

 

(C++) MxeExample2

 

C++11Qt CreatorLubuntu

 

MXE example 2: Hello World C++11 is an MXE example to cross-compile a Hello World C++11 program from GNU/Linux to Windows.

 

Technical facts

 

Operating system(s) or programming environment(s)

IDE(s):

Project type:

C++ standard:

Compiler(s):

Libraries used:

 

 

 

 

 

Qt project file: ./CppMxeExample2/CppMxeExample2.pro

 

QT       -= core
QT       -= gui
QMAKE_CXXFLAGS += -std=c++0x
CONFIG   += console
CONFIG   -= app_bundle
TEMPLATE = app
SOURCES += main.cpp

 

 

 

 

 

./CppMxeExample2/main.cpp

 

#include <iostream>

int main()
{
  const auto s = "Hello C++0x";
  std::cout << s << '\n';
}

 

 

 

 

 

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