Hi,
I am trying to enable loadlib in Linux. I include the liblua.a and
liblualib.a files in the makefile and SciTE compiles correctly and runs
with lua working just fine, but whenever I try to load a library, (in my
case), I get an 'undefined symbol: luaL_newmetatable' error. It appears
the *.a files are not being correctly loaded or something. I notice
including scintilla.a in the build process works, so 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)`
Thanks for any help,
-Mitchell;
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest