Go back to Richel Bilderbeek's homepage.

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

 

 

 

 

 

(C++) HelloCpp0xQtCreatorLubuntu

 

C++0xQt CreatorLubuntu

 

'HelloC++0x' using Qt Creator under Lubuntu is a HelloC++0x program.

 

Technical facts

 

Operating system(s) or programming environment(s)

IDE(s):

Project type:

C++ standard:

Compiler(s):

Libraries used:

 

 

 

 

 

Qt project file: ./CppHelloCpp0xQtCreatorLubuntu/CppHelloCpp0xQtCreatorLubuntu.pro

 

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

 

 

 

 

 

./CppHelloCpp0xQtCreatorLubuntu/main.cpp

 

#include <iostream>

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

 

 

 

 

 

./CppHelloCpp0xQtCreatorLubuntu/CppHelloCpp0xQtCreatorLubuntu.sh

 

#!/bin/bash
myfile="qmake"
mytarget="CppHelloCpp0xQtCreatorLubuntu"
myprofile=$mytarget.pro

if [ ! -e $myprofile ]
then
  echo "Qt Creator project '$myprofile' not found"
  exit
fi

$myfile $myprofile

if [ ! -e Makefile ]
then
  echo "FAIL: $myfile $myprofile"
  exit
fi

make

if [ -e $mytarget ]
then
  echo $mytarget": SUCCESS"
else
  echo $mytarget": FAIL"
fi

#Cleaning up
rm *.o
rm Makefile
rm $mytarget

 

 

 

 

 

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