(C++) HelloCpp11QtCreatorLubuntu
February 24, 2017 · View on GitHub
(C++) HelloCpp11QtCreatorLubuntu



Hello C++11 using Qt Creator under Lubuntu is a Hello C++11 program.
Technical facts
Operating system(s) or programming environment(s)
Lubuntu 15.04 (vivid)
Qt Creator 3.1.1
- G++ 4.9.2
Libraries used:
Qt project file: ./CppHelloCpp11QtCreatorLubuntu/CppHelloCpp11QtCreatorLubuntu.pro
QT += core QT -= gui QMAKE_CXXFLAGS += -std=c++11 CONFIG += console CONFIG -= app_bundle TEMPLATE = app SOURCES += main.cpp
./CppHelloCpp11QtCreatorLubuntu/main.cpp
#include <iostream> int main() { const auto s = "Hello C++11"; std::cout << s << '\n'; }
./CppHelloCpp11QtCreatorLubuntu/CppHelloCpp11QtCreatorLubuntu.sh
#!/bin/bash myfile="qmake" mytarget="CppHelloCpp11QtCreatorLubuntu" 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