Skip to content

error: no matching function for call to 'Engine::Hook::HookError::HookError(<brace-enclosed initializer list>)' on Windows Toolchain  #49

Description

@thebigG

Should be an easy fix.

[ 50%] Building CXX object Tasker/CMakeFiles/Tasker.dir/Ui/MainUi.cpp.obj
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.cpp: In member function 'virtual Engine::Hook::HookError Engine::AudioHook::configure()':
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.cpp:295:38: error: no matching function for call to 'Engine::Hook::HookError::HookError(<brace-enclosed initializer list>)'
     return HookError{ "Placeholder", Hook::HookError::HookErrorStatus::ERROR };
                                      ^
In file included from /__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.h:4:0,
                 from /__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.cpp:1:
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Hook.h:22:9: note: candidate: Engine::Hook::HookError::HookError(std::__cxx11::string, Engine::Hook::HookError::HookErrorStatus)
         HookError(std::string msg, HookErrorStatus newStatus) {
         ^
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Hook.h:22:9: note:   conversion of argument 2 would be ill-formed:
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Hook.h:19:11: note: candidate: Engine::Hook::HookError::HookError(const Engine::Hook::HookError&)
     class HookError {
           ^
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Hook.h:19:11: note:   candidate expects 1 argument, 2 provided
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Hook.h:19:11: note: candidate: Engine::Hook::HookError::HookError(Engine::Hook::HookError&&)
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Hook.h:19:11: note:   candidate expects 1 argument, 2 provided
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.cpp:295:21: error: expected primary-expression before '{' token
     return HookError{ "Placeholder", Hook::HookError::HookErrorStatus::ERROR };
                     ^
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.cpp:295:21: error: expected ';' before '{' token
In file included from /mxe/usr/i686-w64-mingw32.static/include/windows.h:71:0,
                 from /__w/Tasker/Tasker/Tasker/../miniaudio/miniaudio.h:6557,
                 from /__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.cpp:4:
/__w/Tasker/Tasker/Tasker/Engine/Hooks/Audio/AudioHook.cpp:295:72: error: expected unqualified-id before numeric constant
     return HookError{ "Placeholder", Hook::HookError::HookErrorStatus::ERROR };
                                                                        ^
make[2]: *** [Tasker/CMakeFiles/Tasker.dir/Engine/Hooks/Audio/AudioHook.cpp.obj] Error 1
Tasker/CMakeFiles/Tasker.dir/build.make:129: recipe for target 'Tasker/CMakeFiles/Tasker.dir/Engine/Hooks/Audio/AudioHook.cpp.obj' failed
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Tasker/CMakeFiles/Tasker.dir/all] Error 2
CMakeFiles/Makefile2:120: recipe for target 'Tasker/CMakeFiles/Tasker.dir/all' failed
make: *** [all] Error 2
Makefile:135: recipe for target 'all' failed
Error: Process completed with exit code 2.
0s

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions