I am writing a smart contract for use with the EOSIO system contract, and am receiving this error message multiple times when I try to compile the code.

I have checked my constructors and they are all correct - is there something obvious I am missing here?


I solved the problem - the problem was caused by the fact I was not setting default constructors for each class that produced this error message.

class x
// Private variables

  x(){/* Default constructor here */}

This solved the problem. It seems that all classes that are to be used as multi_index arrays need a default constructor, even if the default constructor is blank.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.