On 6/26/07, Andre <[EMAIL PROTECTED]> wrote:
> needs setup.h to be within \wxWidgets\include\wx other projects use the
> platform
> directory.
Please be a lot more clear. What needs setup.h to be...?
I'm guessing you're talking about
wxLua/modules/build/msvc6/modules_mod_luamodule.dsp
but I see that it does include the platform directory.
/I "$(WXWIN)\lib\vc_dll\mswu"
So...
> the following warnings are issued
>
> luamodule.obj : warning LNK4217: locally defined symbol
> [EMAIL PROTECTED]@@QAEXPAVwxEvtHandler@@@Z (public: void __thiscall
> wxLuaState::SetEventHandler(class wxEvtHandler *)) imported in
> function _luaopen_wx luamodule.obj : warning LNK4217: locally defined symbol
> [EMAIL PROTECTED]@@QAE_NPAUlua_State@@W4wxLuaState_Type@@@Z (public: bool
> __thiscall wxLuaState::Create(struct lua_State *,enum wxLuaState_Type))
> imported in function _luaopen_wx
> luamodule.obj : warning LNK4217: locally defined symbol [EMAIL
> PROTECTED]@@QBE_NXZ
> (public: bool __thiscall wxLuaState::Ok(void)const ) imported in function
> _luaopen_wx
> luamodule.obj : warning LNK4217: locally defined symbol ??0wxLuaState@@[EMAIL
> PROTECTED]@Z
> (public: __thiscall wxLuaState::wxLuaState(bool)) imported in function _$E1
> luamodule.obj : warning LNK4049: locally defined symbol ?wxEVT_LUA_ERROR@@3HB
> (int const wxEVT_LUA_ERROR) imported
> luamodule.obj : warning LNK4049: locally defined symbol ?wxEVT_LUA_PRINT@@3HB
> (int const wxEVT_LUA_PRINT) imported
> luamodule.obj : warning LNK4217: locally defined symbol ??1wxLuaState@@[EMAIL
> PROTECTED]
> (public: virtual __thiscall wxLuaState::~wxLuaState(void)) imported in
> function
> _$E2
>
> This is rather odd importing local name ??? the warning does not specify which
> one is used. I suspect the local one cannot be overridden.
The importing error probably means that the functions/classes that are
in the DLL that the luamodule wants to link to are not exported,
meaning that they're local to the "other" DLL and inaccessible to the
luamodule dll.
All the libs we build have their own code like this in a header file
names XXXdefs.h to try to make sure things are right...
// These are our DLL macros (see the contrib libs like wxPlot)
#ifdef WXMAKINGDLL_LUAMODULE
#define WXDLLIMPEXP_LUAMODULE WXEXPORT
#define WXDLLIMPEXP_DATA_LUAMODULE(type) WXEXPORT type
#elif defined(WXUSINGDLL)
#define WXDLLIMPEXP_LUAMODULE WXIMPORT
#define WXDLLIMPEXP_DATA_LUAMODULE(type) WXIMPORT type
#else // not making nor using DLL
#define WXDLLIMPEXP_LUAMODULE
#define WXDLLIMPEXP_DATA_LUAMODULE(type) type
#endif
==============
You get these problems when you've replaced
/D "WXUSINGDLL"
with
/D "WXMAKINGDLL"
in wxLua/modules/build/msvc6/modules_mod_luamodule.dsp
Or alternatively, in your modules_mod_luamodule.vcprj the original
project file had something like this
PreprocessorDefinitions="_USRDLL;DLL_EXPORTS;WXUSINGDLL;_UNICODE;__WXMSW__;WXMAKINGDLL_LUAMODULE"
and is now
PreprocessorDefinitions="_USRDLL;DLL_EXPORTS;WXMAKINGDLL;_UNICODE;__WXMSW__;WXMAKINGDLL_LUAMODULE"
Is this correct? I'm sorry I'm a little lost. If things have gotten
changed too much, it might be hard to tell what really worked or what
broke things, maybe it might be a good idea to start with a fresh copy
of the sources and change one thing at a time. My experience with
changing things with the GUI hasn't been good, I was never sure that
it did what I wanted it to do.
I hope we can get this sorted out.
John Labenski
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users