lua-users home
lua-l archive

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


At 11:07 20/7/2001 -0400, Bob  Paddock wrote:

http://www.tecgraf.puc-rio.br/lua/ftp/binaries/ms-windows/bc55/

I'm trying to link the lua.lib file found at the above URL using the free Boarland Command Line Compiler version 5.5.

It acts like that .lib is not present in my path, because it says all of the Lua's items are "unresolved externs".

I'm not sure if I'm doing some thing wrong or there is some incompatablity with the file, like it can't find the library entry point.

Can some one point me in the correct direction please?

A example bcc makefile, or makefile for bcc that builds lua.lib, is what I'm hoping for.

  This is the one we use to build that library.

scuri

----------------------------------------------------------------------------------------
#  Lua
LIBNAME = lua

SRC = lapi.c lcode.c ldebug.c ldo.c lfunc.c lgc.c llex.c lmem.c lobject.c lparser.c \
        lstate.c lstring.c ltable.c ltm.c lundump.c lvm.c lzio.c

EXPINC= lua.h luadebug.h

INC = lapi.h lcode.h ldebug.h ldo.h lfunc.h lgc.h llex.h llimits.h lmem.h lobject.h \ lopcodes.h lparser.h lstate.h lstring.h ltable.h ltm.h lundump.h lvm.h lzio.h $(EXPINC)

# Generic
BC55         = //X/lng/bcc55
BC55BIN      = $(BC55)/bin
BC55DIR      = x:\\lng\\bcc55

BC55CC       = $(BC55BIN)/bcc32
BC55CPPC     = $(BC55BIN)/bcc32
BC55INCLUDES = $(BC55DIR)\\include
BC55CLIB     = $(BC55BIN)/tlib
BC55OTHER    = -c -n -5 -n$(BC55OBJDIR)\\ -O2
BC55DEFINES  = -DWIN32 -DNDEBUG -D_BC55
BC55CFLAGS   = -I$(BC55INCLUDES) $(BC55DEFINES) $(BC55OTHER)
BC55LFLAGS   = /C

BC55OBJ    = ../obj/bc55
BC55OBJDIR = ..\\obj\\bc55
BC55LIB    = ../lib/bc55
BC55LIBDIR = ..\\lib\\bc55

BC55TARGET  = $(BC55LIB)/$(LIBNAME).lib

bc55: $(BC55LIBDIR) $(BC55OBJDIR) $(BC55TARGET)

BC55OBJS  = $(addprefix $(BC55OBJ)/, $(notdir $(OBJ)))

WINBC55OBJS  = $(addprefix +$(BC55OBJDIR)\\, $(notdir $(OBJ)))

BC55SLIB  = $(addprefix +, $(SLIB))

LDIR  := $(addprefix /LIBPATH:, $(LDIR))
VCDLLLIBDIR = /LIBPATH:$(VCDLLLDIR) $(LDIR)

INCLUDES := $(addprefix -I, $(INCLUDES))
DEFINES  := $(addprefix -D, $(DEFINES))

$(BC55TARGET): $(BC55OBJS)
$(BC55CLIB) $(BC55LIBDIR)\\$(LIBNAME).lib $(BC55LFLAGS) $(WINBC55OBJS) $(BC55SLIB)

$(BC55OBJ)/%.obj: $(SRCDIR)/%.c
        $(BC55CC) $(BC55CFLAGS) $(WINFLAGS) $(DEFINES) $(INCLUDES) $<

$(BC55OBJ)/%.obj: $(SRCDIR)/%.cpp
        $(BC55CPPC) $(BC55CFLAGS) $(WINFLAGS) $(DEFINES) $(INCLUDES) $<
RM=rm.exe -f
MKDIR=mkdir.exe -p
SHELL=bash.exe

$(BC55OBJDIR):
        @$(MKDIR) $@

clean:
        @$(RM) $(BC55OBJDIR)\\*.obj
        @$(RM) $(BC55LIBDIR)\\*.lib
        @echo done.
----------------------------------------------------------------------------------------