Skip to content

Synth not compiling #1

Description

@piercalderan

Sorry man, but your olcNoiseMaker.h is not working. Pity.

\synth-master\olcNoiseMaker.h|213|error: 'thread' does not name a type; did you mean '_hread'?|
\synth-master\olcNoiseMaker.h|216|error: 'condition_variable' does not name a type|
\synth-master\olcNoiseMaker.h|217|error: 'mutex' does not name a type|
\synth-master\olcNoiseMaker.h||In member function 'bool olcNoiseMaker::Create(std::__cxx11::wstring, unsigned int, unsigned int, unsigned int, unsigned int)':|
\synth-master\olcNoiseMaker.h|102|error: no matching function for call to 'find(std::vector<std::__cxx11::basic_string<wchar_t> >::iterator, std::vector<std::__cxx11::basic_string<wchar_t> >::iterator, std::__cxx11::wstring&)'|
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\streambuf_iterator.h|368|note: candidate: 'template typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)'|
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\streambuf_iterator.h|368|note: template argument deduction/substitution failed:|
\synth-master\olcNoiseMaker.h|102|note: '__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<wchar_t>*, std::vector<std::__cxx11::basic_string<wchar_t> > >' is not derived from 'std::istreambuf_iterator<_CharT>'|
\synth-master\olcNoiseMaker.h|141|error: 'm_thread' was not declared in this scope|
\synth-master\olcNoiseMaker.h|141|note: suggested alternative: '_hread'|
\synth-master\olcNoiseMaker.h|144|error: 'mutex' was not declared in this scope|
\synth-master\olcNoiseMaker.h|144|note: 'std::mutex' is defined in header ''; did you forget to '#include '?|
\synth-master\olcNoiseMaker.h|144|error: template argument 1 is invalid|
\synth-master\olcNoiseMaker.h|144|error: 'm_muxBlockNotZero' was not declared in this scope|
\synth-master\olcNoiseMaker.h|145|error: 'm_cvBlockNotZero' was not declared in this scope|
\synth-master\olcNoiseMaker.h|145|note: suggested alternative: 'm_nBlockCount'|
\synth-master\olcNoiseMaker.h||In member function 'void olcNoiseMaker::Stop()':|
\synth-master\olcNoiseMaker.h|158|error: 'm_thread' was not declared in this scope|
\synth-master\olcNoiseMaker.h|158|note: suggested alternative: '_hread'|
\synth-master\olcNoiseMaker.h|182|error: no matching function for call to 'std::vector<std::__cxx11::basic_string<wchar_t> >::push_back(CHAR [32])'|
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\stl_vector.h|1074|note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::__cxx11::basic_string<wchar_t>; _Alloc = std::allocator<std::__cxx11::basic_string<wchar_t> >; std::vector<_Tp, _Alloc>::value_type = std::__cxx11::basic_string<wchar_t>]'|
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\stl_vector.h|1074|note: no known conversion for argument 1 from 'CHAR [32]' {aka 'char [32]'} to 'const value_type&' {aka 'const std::__cxx11::basic_string<wchar_t>&'}|
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\stl_vector.h|1090|note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::__cxx11::basic_string<wchar_t>; _Alloc = std::allocator<std::__cxx11::basic_string<wchar_t> >; std::vector<_Tp, _Alloc>::value_type = std::__cxx11::basic_string<wchar_t>]'|
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\bits\stl_vector.h|1090|note: no known conversion for argument 1 from 'CHAR [32]' {aka 'char [32]'} to 'std::vector<std::__cxx11::basic_string<wchar_t> >::value_type&&' {aka 'std::__cxx11::basic_string<wchar_t>&&'}|
\synth-master\olcNoiseMaker.h||In member function 'void olcNoiseMaker::waveOutProc(HWAVEOUT, UINT, DWORD, DWORD)':|
\synth-master\olcNoiseMaker.h|227|error: 'mutex' was not declared in this scope|
\synth-master\olcNoiseMaker.h|227|note: 'std::mutex' is defined in header ''; did you forget to '#include '?|
\synth-master\olcNoiseMaker.h|227|error: template argument 1 is invalid|
\synth-master\olcNoiseMaker.h|227|error: 'm_muxBlockNotZero' was not declared in this scope|
\synth-master\olcNoiseMaker.h|228|error: 'm_cvBlockNotZero' was not declared in this scope|
\synth-master\olcNoiseMaker.h|228|note: suggested alternative: 'm_nBlockCount'|
\synth-master\olcNoiseMaker.h||In member function 'void olcNoiseMaker::MainThread()':|
\synth-master\olcNoiseMaker.h|256|error: 'mutex' was not declared in this scope|
\synth-master\olcNoiseMaker.h|256|note: 'std::mutex' is defined in header ''; did you forget to '#include '?|
\synth-master\olcNoiseMaker.h|256|error: template argument 1 is invalid|
\synth-master\olcNoiseMaker.h|256|error: 'm_muxBlockNotZero' was not declared in this scope|
\synth-master\olcNoiseMaker.h|257|error: 'm_cvBlockNotZero' was not declared in this scope|
\synth-master\olcNoiseMaker.h|257|note: suggested alternative: 'm_nBlockCount'|
\synth-master\main1.cpp|52|error: use of deleted function 'std::atomic<_Tp>::atomic(const std::atomic<_Tp>&) [with _Tp = double]'|
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\atomic|196|note: declared here|
c:\mingw\lib\gcc\mingw32\8.2.0\include\c++\atomic|200|note: after user-defined conversion: 'constexpr std::atomic<_Tp>::atomic(_Tp) [with _Tp = double]'|
\synth-master\olcNoiseMaker.h||In instantiation of 'bool olcNoiseMaker::Create(std::__cxx11::wstring, unsigned int, unsigned int, unsigned int, unsigned int) [with T = short int; std::__cxx11::wstring = std::__cxx11::basic_string<wchar_t>]':|
\synth-master\olcNoiseMaker.h|78|required from 'olcNoiseMaker::olcNoiseMaker(std::__cxx11::wstring, unsigned int, unsigned int, unsigned int, unsigned int) [with T = short int; std::__cxx11::wstring = std::__cxx11::basic_string<wchar_t>]'|
\synth-master\main1.cpp|86|required from here|
\synth-master\olcNoiseMaker.h|141|error: 'thread' was not declared in this scope|
\synth-master\olcNoiseMaker.h|141|note: 'std::thread' is defined in header ''; did you forget to '#include '?|
||=== Build failed: 21 error(s), 3 warning(s) (0 minute(s), 2 second(s)) ===|

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