bricke / Qt-AES

Native Qt AES encryption class
The Unlicense
501 stars 184 forks source link

MSVC 2013 not working #13

Closed ghost closed 5 years ago

ghost commented 6 years ago

const quint8 sbox[256] = {

Any ideas to fix this?

bricke commented 6 years ago

What's the problem?

ghost commented 6 years ago

@bricke compiler error.

bricke commented 6 years ago

I am not working on Windows, I need more information on the error.

DoctorW00 commented 5 years ago

I can confirm that v1.1 won't compile on Windows MSVC 2013 c++11. Reason could be that you can't initialize a non-static array within the definition. Here is the exact compiler error:

d:\qt-aes_11\qaesencryption.h:112: Error: C2536: 'QAESEncryption::QAESEncryption::sbox' : cannot specify explicit initializer for arrays

Would be awesome if you can fix that in the next version. Cool project!