Claude Heiland-Allen wrote:
After: EXTERN void lua_setup(void) {
Applied this change.
Actually, I had to define a new macro depending on MSW, because otherwise the EXTERN stuff operates in the wrong direction (oops).
Should work now, thanks to IOhannes for pointing out the issue (albeit obliquely).
So the question is, does every external have to jump through this kind of hoop if it wants to compile on Windows?
/* support windows */ #ifdef MSW #define EXPORT __declspec(dllexport) extern #else #define EXPORT extern #endif
Claude