Giter VIP home page Giter VIP logo

travis_qmake_clang_cpp14's Introduction

travis_qmake_clang_cpp14

Branch Travis CI logo
master Build Status
develop Build Status

This GitHub is part of the Travis C++ Tutorial.

The goal of this project is to have a clean Travis CI build, with specs:

  • Build system: qmake
  • C++ compiler: clang (as of 2017-04-27, this is clang 3.8)
  • C++ version: C++14
  • Libraries: STL only
  • Code coverage: none
  • Source: one single file, main.cpp

More complex builds:

Equally complex builds:

Less complex builds:

Troubleshooting

undefined reference to 'std::__1::cout'

Cause:

make

Error message:

clang++ -c -m64 -pipe -Wall -Wextra -Weffc++ -Werror -std=c++14 -stdlib=libc++ -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -o main.o main.cpp
clang++ -m64 -Wl,-O1 -o travis_qmake_clang_cpp14 main.o    -L/usr/lib/x86_64-linux-gnu -lQtGui -lQtCore -lpthread 

The compiling is done with -stdlib=libc++, the linking is done without.

Solution:

Add to the .pro file:

QMAKE_LFLAGS += -stdlib=libc++

travis_qmake_clang_cpp14's People

Contributors

richelbilderbeek avatar

Watchers

龍共每文 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.