Is there any good example cmod module which I could take as a starting point for creating a new one? Preferably with linking to some externaly shared library.
I've tried using the "hello.tgz" module which is on the website but it won't compile using the latest pike 7.8.435: In file included from hello.cmod:8: /usr/local/pike/7.8.435/include/pike/module_magic.h:25:2: error: #error module_magic.h is deprecated. Please read the header file for details. hello.cmod:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘struct’ hello.cmod:30: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ptrdiff_t’ hello.cmod:31: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ hello.cmod:45: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ptrdiff_t’ hello.cmod:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’ hello.cmod:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token hello.cmod:26: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token WARNING: Compiler failure! Trying without optimization! In file included from hello.cmod:8:
/Marc