Giter Club home page Giter Club logo

Comments (5)

shipp108 avatar shipp108 commented on May 18, 2024

You can add C++11 support using the following command, add_definitions(-std=c++11) or add_compile_options(-std=c++11)

ref: Changing CMAKE_CXX_FLAGS in project

from msnhnet.

ou525 avatar ou525 commented on May 18, 2024

我已经添加了c++11支持,这是添加之后报错的

from msnhnet.

msnh2012 avatar msnh2012 commented on May 18, 2024

我这加了c++11没问题,你是什么环境?还有感觉像是头文件出错,你重新git一份试试?

from msnhnet.

ou525 avatar ou525 commented on May 18, 2024

现在还有这个问题,我加了c++11支持,把枚举前面的::去掉了,还改了qt低于5.5的qOverload为static_cast,还有这个问题
/usr/local/include/yaml-cpp/stlemitter.h:19:25: error: expected unqualified-id before ‘:’ token
for (const auto& emit : seq)
^
/usr/local/include/yaml-cpp/stlemitter.h:20:20: error: expected primary-expression before ‘;’ token
emitter << emit;
^
/usr/local/include/yaml-cpp/stlemitter.h: In function ‘YAML::Emitter& YAML::operator<<(YAML::Emitter&, const std::map<T, U>&)’:
/usr/local/include/yaml-cpp/stlemitter.h:43:25: error: expected unqualified-id before ‘:’ token
for (const auto& emit : m)
^
/usr/local/include/yaml-cpp/stlemitter.h:44:27: error: expected primary-expression before ‘.’ token
emitter << Key << emit.first << Value << emit.second;
^
/usr/local/include/yaml-cpp/stlemitter.h:44:50: error: expected primary-expression before ‘.’ token
emitter << Key << emit.first << Value << emit.second;

from msnhnet.

msnh2012 avatar msnh2012 commented on May 18, 2024

你要不工程发我下,我瞅瞅

from msnhnet.

Related Issues (20)

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.