Re: error: 'mutex' in namespace 'std' does not name a type

2017-11-06 Thread Jeffrey Walton
On Mon, Nov 6, 2017 at 1:20 PM, Marcel Raad wrote: > > Am 06.11.2017 18:55 schrieb : > > g++ -DNDEBUG -g2 -O3 -pthread -pipe -c socketft.cpp > socketft.cpp:36:23: fatal error: wspiapi.h: No such file or directory > # include >^ >

Re: Skipping last few bytes of file when FileSource

2017-11-06 Thread Richard Závodný
Okay. I think, there is another problem. The file is actually splitted into two parts. First is encrypted content using AES and the second is encrypted Aes Key and Iv using RSA. The encrypted Aes Key and Iv is 512 bytes big on the end. First I needed to get 512 bytes from the end, decrypt using

Re: error: 'mutex' in namespace 'std' does not name a type

2017-11-06 Thread Jeffrey Walton
On Monday, November 6, 2017 at 1:36:36 PM UTC-5, Marcel Raad wrote: > > Hi Jeff, > > Am 06.11.2017 19:29 schrieb "Jeffrey Walton" : > > Should we remove that header or comment it out? I don't know anyone > developing on Windows 2000 anymore. Windows XP and Windows 2003 are >

Re: error: 'mutex' in namespace 'std' does not name a type

2017-11-06 Thread Marcel Raad
Hi Jeff, Am 06.11.2017 19:29 schrieb "Jeffrey Walton" : Should we remove that header or comment it out? I don't know anyone developing on Windows 2000 anymore. Windows XP and Windows 2003 are the floors for the development shops I work with. unfortunately that wouldn't help

Re: error: 'mutex' in namespace 'std' does not name a type

2017-11-06 Thread usbguru
Thanks for checking my Win32/Win64 hybrid. I had no idea I was doing that. I did try your latest version, and got pretty far with my setup: g++ -DNDEBUG -g2 -O3 -pthread -pipe -c rsa.cpp In file included from filters.h:22:0, from pubkey.h:48, from rsa.h:12,

Re: error: 'mutex' in namespace 'std' does not name a type

2017-11-06 Thread Marcel Raad
Hi Gene, Am 06.11.2017 18:55 schrieb : g++ -DNDEBUG -g2 -O3 -pthread -pipe -c socketft.cpp socketft.cpp:36:23: fatal error: wspiapi.h: No such file or directory # include ^ compilation terminated. make: *** [socketft.o] Error 1 you can define

Re: Skipping last few bytes of file when FileSource

2017-11-06 Thread Jeffrey Walton
On Monday, November 6, 2017 at 2:27:30 PM UTC-5, Richard Závodný wrote: > > Okay. I think, there is another problem. The file is actually splitted > into two parts. First is encrypted content using AES and the second is > encrypted Aes Key and Iv using RSA. The encrypted Aes Key and Iv is 512

Re: error: 'mutex' in namespace 'std' does not name a type

2017-11-06 Thread Jeffrey Walton
On Mon, Nov 6, 2017 at 9:28 AM, wrote: > Here are the details on the two MingW compilers I used, with 630 first: > > C:\data\code>g++ -v > Using built-in specs. > COLLECT_GCC=g++ > COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe > Target: mingw32

Re: error: 'mutex' in namespace 'std' does not name a type

2017-11-06 Thread Jeffrey Walton
On Monday, November 6, 2017 at 7:23:41 AM UTC-5, Jeffrey Walton wrote: > > > > On Sunday, November 5, 2017 at 5:08:08 PM UTC-5, Marcel Raad wrote: >> >> On Saturday, November 4, 2017 at 10:36:30 PM UTC+1, Jeffrey Walton wrote: >> > I tired to setup a MinGW testing environment several times but

Re: error: 'mutex' in namespace 'std' does not name a type

2017-11-06 Thread Marcel Raad
Hi Jeff, Am 06.11.2017 20:20 schrieb "Jeffrey Walton" : How does this fancy you: $ git diff diff --git a/socketft.cpp b/socketft.cpp index 454eaa5..20cda22 100644 --- a/socketft.cpp +++ b/socketft.cpp @@ -30,6 +30,14 @@ # include #endif +// From

Re: error: 'mutex' in namespace 'std' does not name a type

2017-11-06 Thread Jeffrey Walton
On Sunday, November 5, 2017 at 5:08:08 PM UTC-5, Marcel Raad wrote: > > On Saturday, November 4, 2017 at 10:36:30 PM UTC+1, Jeffrey Walton wrote: > > I tired to setup a MinGW testing environment several times but it either > (1) never worked or (2) broke immediately. On the rare occasions I

Re: error: 'mutex' in namespace 'std' does not name a type

2017-11-06 Thread Jeffrey Walton
On Sunday, November 5, 2017 at 5:08:08 PM UTC-5, Marcel Raad wrote: > > On Saturday, November 4, 2017 at 10:36:30 PM UTC+1, Jeffrey Walton wrote: > > I tired to setup a MinGW testing environment several times but it either > (1) never worked or (2) broke immediately. On the rare occasions I

Re: error: 'mutex' in namespace 'std' does not name a type

2017-11-06 Thread Jeffrey Walton
On Saturday, November 4, 2017 at 3:45:32 PM UTC-4, usbg...@gmail.com wrote: > > I got it fixed... kind of. > > On a hunch, I switched back to MinGW4.72, and CryptoPP565 still failed to > build. After trying all permutations of my setups, here is what I found: > > MinGW CryptoPP > 630

Re: error: 'mutex' in namespace 'std' does not name a type

2017-11-06 Thread usbguru
Hi Jeff, Here are the details on the two MingW compilers I used, with 630 first: C:\data\code>g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/6.3.0/lto-wrapper.exe Target: mingw32 Configured with: ../src/gcc-6.3.0/configure

Re: Skipping last few bytes of file when FileSource

2017-11-06 Thread Jeffrey Walton
On Sunday, November 5, 2017 at 10:00:06 AM UTC-5, Richard Závodný wrote: > > Hi. I need skip last 512bytes from the file. This solution not working: > int fileSize = boost::filesystem::file_size("first.txt"); > > CryptoPP::FileSource sourceFile("first.txt", false, new CryptoPP::FileSink >