slang-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] Error on RC5 modules


Ben Duncan <ben@xxxxxxxxxxxxxxxxxx> wrote:
[...]
>000067c0 D SLmodule_appmenu_api_version
[...]
>000043ad T deinit_menu_module
[...]
>000042e1 T init_slagmenu_module_ns

If the module is called "slagmenu", then I expected to see
"SLmodule_slagmenu_api_version" and "deinit_slagmenu_module".  Did you
put 

  SLANG_MODULE(slagmenu)

after including slang.h?  Hmmm... I see a potential problem.  In
slang.h, I have

#ifdef __cplusplus
# define SLANG_MODULE(name) \
   extern "C" int init_##name##_module_ns (char *); \
   extern "C" void deinit_##name##_module (void); \
   extern "C" int _pSLmodule_##name##_api_version; \
   int SLmodule_##name##_api_version = SLANG_VERSION
#else
# define SLANG_MODULE(name) \
   extern int init_##name##_module_ns (char *); \
   extern void deinit_##name##_module (void); \
   int SLmodule_##name##_api_version = SLANG_VERSION
#endif

This:
   extern "C" int _pSLmodule_##name##_api_version; \

should be changed to:

   extern "C" int SLmodule_##name##_api_version; \

Thanks,
--John

_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]