stephanecharette / DarkMark

Marking up images for use with Darknet.
https://www.ccoderun.ca/darkmark/Summary.html
Other
160 stars 21 forks source link

error: ‘exchange’ is not a member of ‘std’ #26

Open kevung opened 1 year ago

kevung commented 1 year ago

Dear Stephane, First, thank you very much for your work on darknet, darkhelp and darkmark. These are fantastic tools.

I encounter a compilation error error: ‘exchange’ is not a member of ‘std’ after cloning the repo, mkdir build && cd build, cmake .., and cmake --build . The files concerned by the error are: -../JuceLibraryCode/modules/juce_gui_basics/misc/juce_DropShadower.cpp -../JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp -../JuceLibraryCode/modules/juce_gui_basics/windows/juce_ComponentPeer.h

In https://en.cppreference.com/w/cpp/utility/exchange, exchange is defined in utility header. After having included #include <utility>, the errors disappear.

Take good care,

Kevin

kevung commented 1 year ago

As indicated in https://en.cppreference.com/w/cpp/error/unexpected_handler , std::unexpected_handler has been removed in c++-17.

stephanecharette commented 1 year ago

As indicated in https://en.cppreference.com/w/cpp/error/unexpected_handler , std::unexpected_handler has been removed in c++-17.

Isn't that a duplicate of your other report, issue #27 ?

kevung commented 1 year ago

Hello Stephane, yes you are right. I posted my last comment in the wrong issue and I meant to address #27.

stephanecharette commented 11 months ago

This should be fixed by https://github.com/stephanecharette/DarkMark/commit/e7a4daea79e1cd0934ae962b2a06c7dacba3d110