- Subject: Re: [slang-users] Error on RC5 modules
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Mon, 7 Mar 2005 19:45:48 -0500
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]