GithubHelp home page GithubHelp logo

4steps's People

Contributors

tfifie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

4steps's Issues

Compiler warnings when building with Clang/LLVM

After applying the fix in pull request #3, the compiler error when building the project with Clang/LLVM, as described in issue #1, was solved. With this fix, Clang can successfully compile the code and the resulting binary appears to run fine.

However, building the project with Clang/LLVM does result in a number of compiler warnings.

Perhaps you could look into these?

You can instruct qmake to create a Makefile for Clang/LLVM as follows:

qmake-qt5 4steps.pro -spec linux-clang

Thank you in advance.

Building the code with the Clang/LLVM compiler requires a manual workaround.

Hi! Impressive work you've done on this project. ๐Ÿ˜ƒ

I tried building your code with both G++ (GCC) and clang++ (Clang/LLVM). The former worked without problems. However, in the latter case, I would see errors complaining about the following:

Qt requires a C++11 compiler and yours does not seem to be that.

Steps to reproduce:

qmake-qt5 4steps.pro -spec linux-clang
make

However, after doing some Googling, I found out about the following workaround: after running "qmake-qt5 4steps.pro -spec linux-clang", open the created Makefile in an editor and the locate the following line:

CXX           = clang++

Now, append the compiler flag "-std=c++11" to it, so that it becomes like this:

CXX           = clang++ -std=c++11

Don't forget to save this change. Now, when you run make, the code will successfully compile with clang, albeit with a few warnings here and there. The resulting 4steps binary also seems to run fine and behave identically as when it were built with G++ (GCC).

To ensure maximum portability of your code, could you perhaps find some time to look into fixing the 4steps.pro file, so that it can generate proper Makefiles for both GCC and clang?

Thanks in advance.

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.