"aggregate ‘bignum foo’ has incomplete type and cannot be defined" Code Answer


there were big changes between openssl 1.0.2 and openssl 1.1.0 and they are not fully source compatible. specifically many data structures which were in the 1.0.2 header files are now opaque. applications that use openssl need to make some small changes to be compatible.

in the case of bignum, you need to do it like this:

#include <openssl/bn.h>
int main() {
    bignum *bn;

    bn = bn_new();


    return 0;

in the case of opendcp probably the answer is to just downgrade to openssl 1.0.2 instead.

By Ervin Szilagyi on April 20 2022
Only authorized users can answer the Search term. Please sign in first, or register a free account.