I think you need to start over, create a brand new dir, get a fresh
copy of wxLua and compile that. Maybe wxWidgets too, if you've touched
the wxWidgets build settings in any way, you're on your own...

Things to check:

1) Make sure you've compiled wxWidgets as DLLs using the exact same
way as you plan to do with wxLua. You cannot mix the builds using the
dsp files with makefile.vc since (unless it been fixed) Bakefile has a
ancient bug where they use different compiler options for the same
build type.

2) Build wxLua with the exact same settings. Maybe if you're using
nmake.exe you're not doing

nmake.exe SHARED=1

On 7/5/07, Andre <[EMAIL PROTECTED]> wrote:
> Andre <[EMAIL PROTECTED]> writes:
> building mod_luamodule: using vc7
>
> added the additional library directories is needed
>
>  $(WXWIN)\lib\vc_lib

No, this is where the static lib builds are put, luamodule is only
built as a DLL and therefore it only uses libs from lib/vc_dll which
you should have already built.

>  $(WXWIN)\wxLua\lib\vc_lib

Nothing should be put in this directory, could you show me what uses this path?

> adding WXMAKINGDLL; to pre-processor defined words works.

I really don't get this. We need to only #define WXMAKINGDLL_LUAMODULE
and WXUSINGDLL. The problem is probably because you are using the
vc_lib libraries instead of the vc_dll libraries.

Look at wxWidgets/include/wx/dlimpexp.h

#ifdef WXMAKINGDLL
...
#    define WXMAKINGDLL_BASE
#    define WXMAKINGDLL_NET
...

and then

#ifdef WXMAKINGDLL_BASE
#    define WXDLLIMPEXP_BASE WXEXPORT
#    define WXDLLIMPEXP_DATA_BASE(type) WXEXPORT type
...

BUT! the wx.dll is not exporting the symbols from the wxWidgets libs,
it's importing them which is why we #define WXUSINGDLL.

> I have no idea what I did wrong before but I just tested it and it works.
> Sorry if I cause anyone problems.
> Maybe I should have rebuild or something???

MSVC is notorious for not doing a proper "clean" and significant
changes to the header files aren't caught and the old precompiled
headers are used. The errors that are generated from this problem are
bizarre and impossible to track down since there aren't any errors at
all.

I use this rather ugly script in cygwin to clean out the whole wxLua
folder when I make big changes. MSVC7 creates even more files if I
remember correctly that also have to be deleted.

for f in `find . -type f | grep -e "\.exe" -e "\.lib" -e "\.dll" -e
"\.obj" -e "\.opt" -e "\.plg" -e "\.ncb" -e "\.pdb" -e "\.idb" -e
"\.ilk" -e "\.exp" -e "\.suo"`; do echo $f; rm
 $f;  done

Regards,
    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

Reply via email to