> 
> I tried to compile Lame 3.80 beta using MSVC 6.0 on Windows NT, with the
> included makefile.msvc. Two things :
>  
> 1. brhist.c includes "termcap.h", which does not exist on the platform.
> Removing the include fixes it.
>  
> 2. At link time, I get the following errors :
>  
> main.obj : error LNK2001: unresolved external symbol _lame_close_infile
> main.obj : error LNK2001: unresolved external symbol _lame_readframe
> main.obj : error LNK2001: unresolved external symbol _lame_init_infile
> main.obj : error LNK2001: unresolved external symbol _lame_parse_args
> main.obj : error LNK2001: unresolved external symbol _lame_usage
>  
> Grep reveals that get_audio.c contains (some of) these functions, and it
> _is_ being compiled. I have no idea what's going wrong... 
>  
> Oh well, at least compiling with Cygwin works fine.
> 
> Martin Dufour
> 

Robert has just fixed this problems in CVS.  Here's the new Makefile.MSVC:




# Makefile.MSVC: MSVC Makefile for LAME 3.81 (alpha1)

PGM = lame

# Microsoft C options
# CC = cl
# LN = link

# Intel 4.5 compiler
CC = icl
LN = xilink

# debugging options
# CC_OPTS = /nologo /Zi /Ge /GZ
# LN_OPTS = /nologo /debug:full /debugtype:cv /fixed:no

# profiling options
# CC_OPTS = /nologo /Zi /O2ab2gitwy /G6AFs /DNDEBUG 
# LN_OPTS = /nologo /debug:full /debugtype:cv /fixed:no /profile

# release options
# CC_OPTS = /nologo /O2ab2gitwy /G6AFs /DNDEBUG 
# LN_OPTS = /nologo

# Intel 4.5 options
CC_OPTS = /nologo /DNDEBUG /Qunroll /O2 /G5AFs /QaxM /Qipo_obj /QIfist- 
LN_OPTS = /nologo

GTK =
GTKLIBS =
SNDLIB = /DLAMESNDFILE
LIBSNDFILE =
LIBS =
MAKEDEP =
TIMER_SWITCH =
BRHIST_SWITCH = # /DBRHIST
LIBTERMCAP =

CPP_OPTS = /DHAVEMPGLIB /DLAMEPARSE

CC_SWITCHES = $(CC_OPTS) $(DISTRIB) $(SNDLIB) $(GTK) \
              /DBS_FORMAT=BINARY $(TIMER_SWITCH) $(BRHIST_SWITCH)
LN_SWITCHES = $(LN_OPTS)

c_sources = \
 main.c \
        gtkanal.c \
        gpkplotting.c \
 brhist.c \
 bitstream.c \
 fft.c \
 get_audio.c \
 id3tag.c \
 ieeefloat.c \
 lame.c \
 newmdct.c \
 parse.c \
 portableio.c \
 psymodel.c \
 quantize.c \
 quantize-pvt.c \
 vbrquantize.c \
 reservoir.c \
 tables.c \
 takehiro.c \
 timestatus.c \
 util.c \
 VbrTag.c \
 version.c \
 mpglib/common.c \
 mpglib/dct64_i386.c \
 mpglib/decode_i386.c \
 mpglib/layer3.c \
 mpglib/tabinit.c \
 mpglib/interface.c \
 mpglib/main.c 

OBJ = $(c_sources:.c=.obj)

.c.obj:
 @$(CC) $(CC_SWITCHES) $(CPP_OPTS) /c $< /Fo$@

$(PGM).exe: $(OBJ) Makefile.MSVC
 @echo $(PGM).exe
 @$(LN) $(LN_SWITCHES) $(OBJ) $(LIBS) $(LIBSNDFILE) $(GTKLIBS) \
   $(LIBTERMCAP) /out:$(PGM).exe /map:$(PGM).map

clean:
 @-del *.obj
 @-del dll\*.obj
 @-del mpglib\*.obj

rebuild: clean $(PGM).exe



--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to