Hi,

Sorry if this is a double post.

I am trying to enable loadlib in Linux. I incorporate liblua.a and liblualib.a into the scite build and it succeeds and lua runs in general. However, when I try to run loadlib, I get a 'undefined symbol: luaL_newmetatable'. It appears the *.a files are not loading properly or something. The scintilla.a does of course, but why not *lua.a?

For reference, here is a relevant snippet of my gtk/makefile:

LUA_OBJS = LuaExtension.o IFaceTable.o

INCLUDEDIRS=-I ../../scintilla/include -I ../src -I../lua/include
#$(LUA_CORE_OBJS): ../lua/src/*.c
#       gcc $(INCLUDEDIRS) $(CXXTFLAGS) -c ../lua/src/*.c
#$(LUA_LIB_OBJS): ../lua/src/lib/*.c
#       gcc $(INCLUDEDIRS) $(CXXTFLAGS) -c ../lua/src/lib/*.c
CXXFLAGS=$(CXXTFLAGS)
else
CXXFLAGS=$(CXXTFLAGS) -DNO_LUA
endif

# make should be run in ../../scintilla/gtk to compile all the lexers.
COMPLIB=../../scintilla/bin/scintilla.a
LCOMPLIB=../lua/lib/liblua.a ../lua/lib/liblualib.a

$(PROG): SciTEGTK.o FilePath.o SciTEBase.o SciTEBuffers.o \
SciTEIO.o Exporters.o MultiplexExtension.o \
DirectorExtension.o SciTEProps.o Utf8_16.o $(LUA_OBJS) \
        $(COMPLIB) $(LCOMPLIB)
        $(CC) `$(CONFIGTHREADS)` -DGTK $^ -o $@ `$(CONFIGLIB)`

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to