QuasarApp / Qt-Secret

Simple encryption library supporting RSA and AES algorithms.
https://quasarapp.ddns.net:3031/docs/QuasarApp/Qt-Secret/latest/index.html
GNU Lesser General Public License v3.0
246 stars 69 forks source link

too many errors about bigint when make #68

Closed senlinmuvs closed 4 years ago

senlinmuvs commented 4 years ago

Mac 10.13.6 Qt version 5.14.1

qmake -r
make -j8
In file included from bigint.cpp:8:
./bigint.h:22:5: error: unexpected type name 'mpz_t': expected expression
    mpz_t data;
    ^
./bigint.h:20:28: error: variable has incomplete type 'class MINIGMPSHARED_EXPORT'
class MINIGMPSHARED_EXPORT BigInt
                           ^
./bigint.h:20:7: note: forward declaration of 'MINIGMPSHARED_EXPORT'
class MINIGMPSHARED_EXPORT BigInt
      ^
bigint.cpp:14:1: error: 'BigInt' is not a class, namespace, or enumeration
BigInt::BigInt() {
^
./bigint.h:20:28: note: 'BigInt' declared here
class MINIGMPSHARED_EXPORT BigInt
                           ^
bigint.cpp:18:1: error: 'BigInt' is not a class, namespace, or enumeration
BigInt::BigInt(const BigInt &val, int bitCount) {
^
./bigint.h:20:28: note: 'BigInt' declared here
class MINIGMPSHARED_EXPORT BigInt
                           ^
bigint.cpp:18:22: error: unknown type name 'BigInt'
BigInt::BigInt(const BigInt &val, int bitCount) {
                     ^
bigint.cpp:29:1: error: 'BigInt' is not a class, namespace, or enumeration
BigInt::BigInt(const std::string &str, int base):
^
./bigint.h:20:28: note: 'BigInt' declared here
class MINIGMPSHARED_EXPORT BigInt
                           ^
EndrII commented 4 years ago

I do not have mac OS, and I can not test the assembly on this platform. Can you post the full log of the assembly?

and tell me which compiler do you use?

senlinmuvs commented 4 years ago

I do not have mac OS, and I can not test the assembly on this platform. Can you post the full log of the assembly?

and tell me which compiler do you use?

The rest are duplicate errors

EndrII commented 4 years ago

check build please

EndrII commented 4 years ago

fixed in https://github.com/QuasarApp/QtBigInt/pull/7