lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello Paul,

I'm still struggling with building wx Lua module -

On Sun, 18 Oct 2020 18:47:32 +0200, Paul K <paul@zerobrane.com> wrote:

> Yes, with a couple of caveats: (1) you need to compile wxWidgets from
> source, as you won't be able to use their binaries,

OK, I did (I believe) - now I have a lot of .lib and .dll in the

	wxWidgets\lib\vc_lib\...
and
	wxWidgets\lib\vc_dll\...

directories.

> and (2) you need
> to get the wxlua source from https://github.com/pkulchenko/wxlua/tags
> (or get the latest source from the master branch)

Yes, I got it.

The main problem now is that the (MSVC) linker is missing some symbols (there are also some more errors, but for now -)

wxldserv.obj : error LNK2001: unresolved external symbol "wchar_t const * const wxEmptyString" (?wxEmptyString@@3PB_WB)
wxldtarg.obj : error LNK2001: unresolved external symbol "wchar_t const * const wxEmptyString" (?wxEmptyString@@3PB_WB)
...

The symbol

	"wchar_t const * const wxEmptyString" (?wxEmptyString@@3PB_WB)

is missing.

Where - in which .lib or .dll of wxWidgets - is the symbol supposed to be defined/exported to?

(Note also that I used CMake to get the initial .sln for building the wx Lua module; I ran it after I had wxWidgets libs compiled.)

Best regards,

Lukas