(C++) HelloWorld64QtCreatorLubuntu

February 24, 2017 · View on GitHub

 

 

 

 

 

(C++) HelloWorld64QtCreatorLubuntu

 

Hello World (64-bit) using Qt Creator under Lubuntu is a Hello World (64-bit) program using the Qt Creator IDE under the Lubuntu operating system.

 

Compiling the code results in the following error:

 


/usr/include/c++/4.5/iostream:39: error: bits/c++config.h: No such file or directory

Technical facts

 

Operating system(s) or programming environment(s)

IDE(s):

Project type:

C++ standard:

Compiler(s):

Libraries used:

  • Qt Qt: version 5.4.1 (32 bit)
  • STL STL: GNU ISO C++ Library, version 4.9.2

 

 

 

 

 

Qt project file: ./CppHelloWorld64QtCreatorLubuntu/CppHelloWorld64QtCreatorLubuntu.pro

 


QT       += core QT       -= gui QMAKE_CXXFLAGS += -m64 CONFIG   += console CONFIG   -= app_bundle TEMPLATE = app SOURCES += main.cpp

 

 

 

 

 

./CppHelloWorld64QtCreatorLubuntu/main.cpp

 


#include <iostream> int main() {   std::cout << "Hello World\n"; }

 

 

 

 

 

./CppHelloWorld64QtCreatorLubuntu/CppHelloWorld64QtCreatorLubuntu.sh

 


#!/bin/bash mymake="make" myqmake="qmake" mytarget="CppHelloWorld64QtCreatorLubuntu" myprofile=$mytarget.pro if [ ! -e $myprofile ] then   echo "Qt Creator project '$myprofile' not found"   exit fi $myqmake $myprofile if [ ! -e Makefile ] then   echo $mytarget": FAIL"     exit fi $mymake if [ -e $mytarget ] then   echo $mytarget": SUCCESS" else   echo $mytarget": FAIL" fi #Cleaning up rm *.o rm Makefile rm $mytarget