On Friday, November 3, 2017 at 6:09:20 PM UTC-4, usbg...@gmail.com wrote:
>
> I am building CryptoPP 5.65 with MingW 6.3.0.
>
> make gives  an error:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *c:\devdir\>makeg++ -DNDEBUG -g2 -O2 -march=native -pipe -c cryptlib.cppIn 
> file included from cryptlib.cpp:19:0:misc.h: In member function 'const T& 
> CryptoPP::Singleton<T, F, instance>::Ref() const':misc.h:287:14: error: 
> 'mutex' in namespace 'std' does not name a type  static std::mutex 
> s_mutex;              ^~~~~misc.h:296:18: error: 'mutex' is not a member of 
> 'std'  std::lock_guard<std::mutex> lock(s_mutex);                  
> ^~~misc.h:296:18: error: 'mutex' is not a member of 'std'misc.h:296:28: 
> error: template argument 1 is invalid  std::lock_guard<std::mutex> 
> lock(s_mutex);                            ^misc.h:296:35: error: 's_mutex' 
> was not declared in this scope  std::lock_guard<std::mutex> 
> lock(s_mutex);                                   ^~~~~~~make: *** 
> [cryptlib.o] Error 1*
> I ran   *make -d*   and can post that if anyone thinks that will help.
>
> What do I do to fix this?
>

If you are working on Master, then try this change: "Crypto++ MinGW 
std::mutex patch", https://pastebin.com/FqLPUj0H. The patch may not apply 
cleanly because I am on my testing branch, but the same change applies to 
Master.

A Crypto++ 5.6.5 change should be similar. But you should consider working 
from Master because it has two CVE bug fixes and it is mostly stable.

Jeff

-- 
-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com.
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
--- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to