Error in included file module.h


I am having a problem with writing a custom resource module (specifically an application). When trying to compile Asterisk I receive an error regarding module.h in the standard asterisk includes. The error reads:

In file included from res_application.c:6:0:
/usr/local/src/asterisk-14.4.1/include/asterisk/module.h:526:2: error: expected ',' or ';' at end of input
  static const struct ast_module_info *ast_module_info = &__mod_info

I have yet to find the reason behind this error. I could build Asterisk before writing my module and run the server, so I am surprised to see this error come up now. Any help appreciated. Thanks in advance.

This is a developer question so should be asked on the developer mailing list or IRC channel.

1 Like

Ok thanks for the pointer.