Coder Social home page Coder Social logo

compilation error about nana HOT 3 CLOSED

oltolm avatar oltolm commented on May 26, 2024
compilation error

from nana.

Comments (3)

cnjinhao avatar cnjinhao commented on May 26, 2024

It a simple typo error, thank you.

from nana.

oltolm avatar oltolm commented on May 26, 2024

Thanks, now I get another error

[build] FAILED: _deps/nana-build/CMakeFiles/nana.dir/source/paint/image.cpp.obj 
[build] ccache C:\msys64\mingw64\bin\c++.exe -DNANA_ENABLE_VIRTUAL_KEYBOARD -DWIN32 -IC:/src/CPM/nana/8e8e86305b21f6b7260c45d46cc0f6a6f1a8279e/include -O3 -march=native -mtune=native -DNDEBUG -Wall -fmax-errors=3 -MD -MT _deps/nana-build/CMakeFiles/nana.dir/source/paint/image.cpp.obj -MF _deps\nana-build\CMakeFiles\nana.dir\source\paint\image.cpp.obj.d -o _deps/nana-build/CMakeFiles/nana.dir/source/paint/image.cpp.obj -c C:/src/CPM/nana/8e8e86305b21f6b7260c45d46cc0f6a6f1a8279e/source/paint/image.cpp
[build] C:/src/CPM/nana/8e8e86305b21f6b7260c45d46cc0f6a6f1a8279e/source/paint/image.cpp: In static member function 'static HICON__* nana::paint::image_accessor::icon(const nana::paint::image&)':
[build] C:/src/CPM/nana/8e8e86305b21f6b7260c45d46cc0f6a6f1a8279e/source/paint/image.cpp:66:50: error: 'floor' is not a member of 'std'; did you mean 'std::chrono::floor'?
[build]    66 |                         auto row = (size_t) std::floor((i / 4) / size.height);
[build]       |                                                  ^~~~~
[build] In file included from C:/msys64/mingw64/include/c++/13.2.0/bits/fs_fwd.h:37,
[build]                  from C:/msys64/mingw64/include/c++/13.2.0/filesystem:48,
[build]                  from C:/src/CPM/nana/8e8e86305b21f6b7260c45d46cc0f6a6f1a8279e/include/nana/paint/graphics.hpp:20,
[build]                  from C:/src/CPM/nana/8e8e86305b21f6b7260c45d46cc0f6a6f1a8279e/include/nana/paint/image.hpp:17,
[build]                  from C:/src/CPM/nana/8e8e86305b21f6b7260c45d46cc0f6a6f1a8279e/source/detail/mswin/platform_spec.hpp:21,
[build]                  from C:/src/CPM/nana/8e8e86305b21f6b7260c45d46cc0f6a6f1a8279e/source/detail/platform_spec_selector.hpp:18,
[build]                  from C:/src/CPM/nana/8e8e86305b21f6b7260c45d46cc0f6a6f1a8279e/source/paint/image.cpp:15:
[build] C:/msys64/mingw64/include/c++/13.2.0/bits/chrono.h:1052:7: note: 'std::chrono::floor' declared here
[build]  1052 |       floor(const time_point<_Clock, _Dur>& __tp)
[build]       |       ^~~~~

from nana.

oltolm avatar oltolm commented on May 26, 2024

Thank you.

from nana.

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.