Go back to Richel Bilderbeek's homepage.

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

 

 

 

 

 

(C++) 64-bitQt CreatorLubuntuDesktop Hello World (64-bit) using Qt Creator under Lubuntu

 

Hello World (64-bit) is a Hello World for 64-bit.

 

 

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

 

Application type(s)

Operating system(s) or programming environment(s)

IDE(s):

Project type:

C++ standard:

Compiler(s):

Libraries used:

 

 

 

 

 

Qt project file: CppHelloWorld64QtCreatorLubuntu.pro

 

#-------------------------------------------------
#
# Project created by QtCreator 2010-09-29T14:58:49
#
#-------------------------------------------------
QT       += core
QT       -= gui
TARGET = CppHelloWorld64QtCreatorLubuntu
QMAKE_CXXFLAGS += -m64
#INCLUDEPATH += /usr/include/c++/4.5/i486-linux-gnu
#INCLUDEPATH += /usr/include/c++/4.5/i686-linux-gnu
#INCLUDEPATH += /usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/i586-mingw32msvc
#INCLUDEPATH += /opt/mingw/usr/lib/gcc/i686-pc-mingw32/4.5.2/include/c++/i686-pc-mingw32
#LIBS += -L/opt/mingw/usr/lib/gcc/i686-pc-mingw32/4.5.2/lib/c++/i686-pc-mingw32
#LIBS += -L/usr/lib/gcc/i586-mingw32msvc/4.4.4/include/c++/i586-mingw32msvc
#LIBS += -L/usr/lib/c++/4.5/i486-linux-gnu
#QMAKE_CXXFLAGS += -std=c++0x
CONFIG   += console
CONFIG   -= app_bundle
TEMPLATE = app
SOURCES += main.cpp

 

 

 

 

 

main.cpp

 

#include <iostream>

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

 

 

 

 

 

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

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict