Wesley Parish wrote:
> 
> How does it fail?  What error messages are you getting?  How is Bywater Basic
> configured - ie, what options are in your prj or Makefile?
> 
> Providing those would help us who've used TurboC(++) to work out what the
> problem might be.

You are absolutely right. Sorry, I forgot this.
The error message is:

C:\tools\BWB220>make -fmakefile.bc
MAKE  Version 3.0  Copyright (c) 1987, 1990 Borland International

Available memory 569968 bytes

        echo bwbasic.obj bwb_int.obj bwb_tbl.obj bwb_cmd.obj bwb_prn.obj
> ofi
s1.xxx
        echo bwb_exp.obj bwb_var.obj bwb_inp.obj bwb_fnc.obj bwb_cnd.obj
> ofi
s2.xxx
        echo bwb_ops.obj bwb_dio.obj bwb_str.obj bwb_elx.obj bwb_mth.obj
> ofi
s3.xxx
        echo bwb_stc.obj bwb_par.obj bwx_tty.obj msdos.obj > ofiles4.xxx
        tcc -O -DDMSDOS -DANSI_C=1 -DHAVE_STRING=1 -DHAVE_STDLIB=1 -mh
-e$ *.o

Turbo C  Version 2.01  Copyright (c) 1987, 1988 Borland International
Turbo Link  Version 2.0  Copyright (c) 1987, 1988 Borland International
Undefined symbol '_main' in module c0.ASM

        Available memory 382250

** error 1 ** deleting bwbasic.exe

The makefile is this. I had to modify it somehow.

# This makefile.bc is intended for Borland C 3.1
# Contributed by Jim Hall <[EMAIL PROTECTED]>
#
# To compile, type:     make -fmakefile.bc
#
# I have not tested the bwx_iqc implementation:
#
#               To implement the bwx_iqc implementation (using specific
#               features for the IBM PC and compatibles), chainge each
#               instance of "bwx_tty" to "bwx_iqc".
#
PROJ=           bwbasic
#CC=             qcl
CC=             tcc

#
#               These are the normal flags I used to compile bwBASIC:
#
#CFLAGS=         -O -AL -W3 -Za -DMSDOS
CFLAGS=         -O -DDMSDOS -DANSI_C=1 -DHAVE_STRING=1 -DHAVE_STDLIB=1
-mh
#
#               The following flags can be used for debugging:
#
#CFLAGS=         -Od -AL -W3 -Za -Zr -Zi -DMSDOS

# Not needed: (jh)
#LFLAGS=         /NOE /ST:8192

# Split the OFILES macro into smaller pieces: (jh)
OFILES1=        bwbasic.obj bwb_int.obj bwb_tbl.obj bwb_cmd.obj
bwb_prn.obj
OFILES2=        bwb_exp.obj bwb_var.obj bwb_inp.obj bwb_fnc.obj
bwb_cnd.obj
OFILES3=        bwb_ops.obj bwb_dio.obj bwb_str.obj bwb_elx.obj
bwb_mth.obj
OFILES4=        bwb_stc.obj bwb_par.obj bwx_tty.obj msdos.obj

HFILES=         bwbasic.h bwb_mes.h

all:            $(PROJ).exe

$(OFILES1):     $(HFILES)
$(OFILES2):     $(HFILES)
$(OFILES3):     $(HFILES)
$(OFILES4):     $(HFILES)

$(PROJ).exe:    $(OFILES1) $(OFILES2) $(OFILES3) $(OFILES4)
        echo $(OFILES1) > ofiles1.xxx
        echo $(OFILES2) > ofiles2.xxx
        echo $(OFILES3) > ofiles3.xxx
        echo $(OFILES4) > ofiles4.xxx
        $(CC) $(CFLAGS) -e$ *.obj
        -del *.xxx



# Clean up: (jh)

clean:
        -del *.xxx

realclean: clean
        -del *.obj

distclean: realclean
        -del *.exe

Greetings

Karsten Schenk



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to