Compile error.

This is a discussion on Compile error. within the Tech Board forums, part of the Community Boards category; I am trying to compile this program and I figured out with some help here how to create a directory. ...

  1. #1
    Registered User
    Join Date
    Sep 2006
    Location
    Beaverton, Oregon, United States
    Posts
    163

    Compile error.

    I am trying to compile this program and I figured out with some help here how to create a directory. However I'm getting another problem and I'm not sure if its an enviroment problem or what. Its the 'not an operable batch file or program' error when I go to compile.

    I thought maybe some of the files got corrupted because I had a dirty DIMM slot that was giving me memory errors some time ago that corrupted some files that I fixed. So i redownloaded the source package. But I keep getting this error:

    Code:
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    
    C:\Documents and Settings\Cruisin'>set VBCC=c:\vbcc
    
    C:\Documents and Settings\Cruisin'>set PATH=c:\vbcc\bin;%PATH%
    
    C:\Documents and Settings\Cruisin'>set PATH=c:\stuff\mingw\bin;%PATH%
    
    C:\Documents and Settings\Cruisin'>cd c:\
    
    C:\>cd vbcc
    
    C:\vbcc>dir
     Volume in drive C has no label.
     Volume Serial Number is E4EA-EFCE
    
     Directory of C:\vbcc
    
    06/14/2013  09:20 AM    <DIR>          .
    06/14/2013  09:20 AM    <DIR>          ..
    12/07/2006  03:00 PM            20,384 alias.c
    01/03/2011  05:31 PM            19,603 av.c
    06/14/2013  09:24 AM    <DIR>          bin
    02/01/2005  03:00 PM             3,691 bug.c
    01/19/2006  03:00 PM            12,586 cp.c
    10/04/2006  03:00 PM            14,117 cse.c
    06/14/2013  09:18 AM    <DIR>          datatypes
    08/16/2011  03:18 AM           109,371 declaration.c
    06/14/2013  09:18 AM    <DIR>          doc
    08/05/2011  03:53 PM            37,299 dwarf2.c
    06/06/2011  08:14 AM            20,541 errors.h
    08/16/2011  03:18 AM            23,004 flow.c
    06/14/2013  09:18 AM    <DIR>          frontend
    08/16/2011  03:18 AM            73,324 ic.c
    02/24/2005  03:00 PM            65,554 icn.c
    09/07/2009  10:09 AM            57,446 loop.c
    04/19/2013  08:17 PM    <DIR>          machines
    08/16/2011  03:18 AM            51,506 main.c
    06/14/2013  09:20 AM            11,201 Makefile
    01/03/2011  05:31 PM            11,199 Makefile.$$$
    02/01/2005  03:00 PM             4,338 mbasic.c
    02/24/2005  03:00 PM            17,721 misra_errors.h
    05/12/2009  03:28 AM            42,553 opt.c
    02/01/2005  03:00 PM             5,577 opt.h
    05/11/2006  03:00 PM               646 osekrm.c
    02/01/2005  03:00 PM               473 osek_supp.h
    08/16/2011  03:18 AM            24,548 parse_expr.c
    02/01/2005  03:00 PM            76,077 preproc.c
    08/16/2011  03:18 AM            17,834 rd.c
    06/26/2011  01:51 PM            60,862 regs.c
    08/16/2011  03:18 AM            28,790 statements.c
    08/16/2011  03:18 AM            40,330 supp.c
    08/16/2011  03:18 AM            23,175 supp.h
    08/16/2011  03:18 AM            59,349 type_expr.c
    06/14/2013  09:18 AM    <DIR>          ucpp
    05/18/2011  05:19 PM             2,654 vars.c
    06/08/2011  11:13 AM             8,256 vbc.h
    02/01/2005  03:00 PM               816 vbcc_cpp.h
    02/01/2005  03:00 PM             3,976 vbpp.h
    06/14/2013  09:18 AM    <DIR>          vprof
    06/14/2013  09:18 AM    <DIR>          vsc
                  33 File(s)        948,801 bytes
                  10 Dir(s)  473,315,840,000 bytes free
    
    C:\vbcc>make TARGET=m68k
    
    Microsoft (R) Program Maintenance Utility   Version 1.50
    Copyright (c) Microsoft Corp 1988-94. All rights reserved.
    
            mingw32-gcc-4.6.2 -std=c9x -g frontend/vc.c -o bin/vc -lm
            mingw32-gcc-4.6.2 -std=c9x -g vprof/vprof.c -o bin/vprof -lm
            mingw32-gcc-4.6.2 -std=c9x -g datatypes/dtgen.c -o bin/dtgen -Idatatypes
     -lm
            bin/dtgen machines/m68k/machine.dt machines/m68k/dt.h machines/m68k/dt.c
    
    'bin' is not recognized as an internal or external command,
    operable program or batch file.
    NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
    Stop.
    
    C:\vbcc>
    Any ideas?

  2. #2
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,484
    looks like some paths in the makefile should be wrapped with quotes - since they contain spaces.
    Could you show your makefile contents?
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

  3. #3
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,488
    Just a guess here, but you're in Windows, yet using *NIX-style directory separators. Try replacing the slashes (/) with backslashes (\). Windows treats forward slash as a command line option, so it thinks you're doing bin /vc, where bin is the program name and /vc is the command line options.

    EDIT: Also what vart said.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Location
    Beaverton, Oregon, United States
    Posts
    163
    One huge makefile coming up...

    Code:
    # used to create vbcc, vc and ucpp
    CC = mingw32-gcc-4.6.2 -std=c9x -g #-DHAVE_ECPP -DHAVE_MISRA
    LDFLAGS = -lm
    
    # native version; used to create dtgen
    NCC = $(CC)
    NLDFLAGS = $(LDFLAGS)
    
    all: bin/vc bin/vprof bin/vbcc$(TARGET) #bin/vcpp
    
    vbccs: bin/vbccs$(TARGET)
    
    bin/vc: frontend/vc.c
    	$(CC) frontend/vc.c -o bin/vc $(LDFLAGS)
    
    bin/vprof: vprof/vprof.c
    	$(CC) vprof/vprof.c -o bin/vprof $(LDFLAGS)
    
    doc/vbcc.pdf:
    	texi2dvi --pdf doc/vbcc.texi
    
    doc/vbcc.html:
    	(cd doc;texi2html -split=chapter -nosec_nav -frames vbcc.texi)
    	sed -e s/vbcc_13/vbcc_1/ <doc/vbcc_frame.html >doc/vbcc.html
    
    vcppobjs = vcpp/cpp.o vcpp/eval.o vcpp/getopt.o vcpp/hideset.o vcpp/include.o \
    	   vcpp/lex.o vcpp/macro.o vcpp/nlist.o vcpp/tokens.o vcpp/unix.o
    
    vbcc.tar.gz:
    	(cd ..;tar zcvf vbcc.tar.gz vbcc/Makefile vbcc/*.[ch] vbcc/datatypes/*.[ch] vbcc/doc/*.texi vbcc/frontend/vc.c vbcc/machines/*/machine.[ch] vbcc/machines/*/machine.dt vbcc/machines/*/schedule.[ch] vbcc/ucpp/*.[ch] vbcc/ucpp/README vbcc/vprof/vprof.c vbcc/vsc/vsc.[ch])
    
    bin/osekrm: osekrm.c
    	$(CC) osekrm.c -o bin/osekrm
    
    dist: bin/osekrm
    	mv supp.h t1
    	mv supp.c t2
    	mv main.c t3
    	mv machines/ppc/machine.c t4
    	mv declaration.c t5
    	mv flow.c t6
    	mv ic.c t7
    	mv parse_expr.c t8
    	mv statements.c t9
    	mv rd.c t10
    	mv type_expr.c t11
    	bin/osekrm <t1 >supp.h
    	bin/osekrm <t2 >supp.c
    	bin/osekrm <t3 >main.c
    	bin/osekrm <t4 >machines/ppc/machine.c
    	bin/osekrm <t5 >declaration.c
    	bin/osekrm <t6 >flow.c
    	bin/osekrm <t7 >ic.c
    	bin/osekrm <t8 >parse_expr.c
    	bin/osekrm <t9 >statements.c
    	bin/osekrm <t10 >rd.c
    	bin/osekrm <t11 >type_expr.c
    	make vbcc.tar.gz
    	mv t1 supp.h
    	mv t2 supp.c
    	mv t3 main.c
    	mv t4 machines/ppc/machine.c
    	mv t5 declaration.c
    	mv t6 flow.c
    	mv t7 ic.c
    	mv t8 parse_expr.c
    	mv t9 statements.c
    	mv t10 rd.c
    	mv t11 type_expr.c	
    
    bin/vcpp: $(vcppobjs)
    	$(CC) $(LDFLAGS) $(vcppobjs) -o bin/vcpp
    
    vcpp/cpp.o: vcpp/cpp.c vcpp/cpp.h
    	$(CC) -c -Ivcpp vcpp/cpp.c -o vcpp/cpp.o
    
    vcpp/eval.o: vcpp/eval.c vcpp/cpp.h
    	$(CC) -c -Ivcpp vcpp/eval.c -o vcpp/eval.o
    
    vcpp/getopt.o: vcpp/getopt.c
    	$(CC) -c -Ivcpp vcpp/getopt.c -o vcpp/getopt.o
    
    vcpp/hideset.o: vcpp/hideset.c vcpp/cpp.h
    	$(CC) -c -Ivcpp vcpp/hideset.c -o vcpp/hideset.o
    
    vcpp/include.o: vcpp/include.c vcpp/cpp.h
    	$(CC) -c -Ivcpp vcpp/include.c -o vcpp/include.o
    
    vcpp/lex.o: vcpp/lex.c vcpp/cpp.h
    	$(CC) -c -Ivcpp vcpp/lex.c -o vcpp/lex.o
    
    vcpp/macro.o: vcpp/macro.c vcpp/cpp.h
    	$(CC) -c -Ivcpp vcpp/macro.c -o vcpp/macro.o
    
    vcpp/nlist.o: vcpp/nlist.c vcpp/cpp.h
    	$(CC) -c -Ivcpp vcpp/nlist.c -o vcpp/nlist.o
    
    vcpp/tokens.o: vcpp/tokens.c vcpp/cpp.h
    	$(CC) -c -Ivcpp vcpp/tokens.c -o vcpp/tokens.o
    
    vcpp/unix.o: vcpp/unix.c vcpp/cpp.h
    	$(CC) -c -Ivcpp vcpp/unix.c -o vcpp/unix.o
    
    TRGDIR = machines/$(TARGET)
    
    bobjects = $(TRGDIR)/main.o $(TRGDIR)/vars.o $(TRGDIR)/declaration.o \
    	   $(TRGDIR)/parse_expr.o $(TRGDIR)/type_expr.o $(TRGDIR)/ic.o \
    	   $(TRGDIR)/machine.o $(TRGDIR)/statements.o \
    	   $(TRGDIR)/supp.o $(TRGDIR)/dt.o \
               $(TRGDIR)/assert.o $(TRGDIR)/cpp.o $(TRGDIR)/hash.o \
               $(TRGDIR)/lexer.o $(TRGDIR)/macro.o $(TRGDIR)/mem.o \
               $(TRGDIR)/eval.o
    #           $(TRGDIR)/AdjList.o $(TRGDIR)/DUChain.o \
    #           $(TRGDIR)/ICodeInsertion.o $(TRGDIR)/NodeList.o \
    #           $(TRGDIR)/RAllocMain.o $(TRGDIR)/Web.o
    
    fobjects = $(TRGDIR)/opt.o $(TRGDIR)/av.o $(TRGDIR)/rd.o $(TRGDIR)/regs.o \
    	   $(TRGDIR)/flow.o $(TRGDIR)/cse.o $(TRGDIR)/cp.o $(TRGDIR)/loop.o \
    	   $(TRGDIR)/alias.o $(bobjects)
    
    sobjects = $(TRGDIR)/opts.o $(TRGDIR)/regss.o $(bobjects)
    
    tasm	 = $(TRGDIR)/supp.o $(TRGDIR)/tasm.o $(TRGDIR)/dt.o \
    	   $(TRGDIR)/opt.o $(TRGDIR)/av.o $(TRGDIR)/rd.o $(TRGDIR)/regs.o \
    	   $(TRGDIR)/flow.o $(TRGDIR)/cse.o $(TRGDIR)/cp.o $(TRGDIR)/loop.o \
    	   $(TRGDIR)/alias.o $(TRGDIR)/machine.o
    
    mbasic	 = $(TRGDIR)/supp.o $(TRGDIR)/mbasic.o $(TRGDIR)/dt.o \
    	   $(TRGDIR)/opt.o $(TRGDIR)/av.o $(TRGDIR)/rd.o $(TRGDIR)/regs.o \
    	   $(TRGDIR)/flow.o $(TRGDIR)/cse.o $(TRGDIR)/cp.o $(TRGDIR)/loop.o \
    	   $(TRGDIR)/alias.o $(TRGDIR)/machine.o
    
    minicomp	 = $(TRGDIR)/supp.o $(TRGDIR)/minicompg.tab.o $(TRGDIR)/minicomp.o $(TRGDIR)/dt.o \
    	   $(TRGDIR)/opt.o $(TRGDIR)/av.o $(TRGDIR)/rd.o $(TRGDIR)/regs.o \
    	   $(TRGDIR)/flow.o $(TRGDIR)/cse.o $(TRGDIR)/cp.o $(TRGDIR)/loop.o \
    	   $(TRGDIR)/alias.o $(TRGDIR)/machine.o
    
    vscobjects = $(TRGDIR)/vsc.o $(TRGDIR)/schedule.o
    
    bin/vbcc$(TARGET): $(fobjects)
    	$(CC) $(LDFLAGS) $(fobjects) -o bin/vbcc$(TARGET)
    
    bin/vbccs$(TARGET): $(sobjects)
    	$(CC) $(LDFLAGS) $(sobjects) -o bin/vbccs$(TARGET)
    
    bin/vsc$(TARGET): $(vscobjects)
    	$(CC) $(LDFLAGS) $(vscobjects) -o bin/vsc$(TARGET)
    
    bin/tasm$(TARGET): $(tasm)
    	$(CC) $(LDFLAGS) $(tasm) -o bin/tasm$(TARGET)
    
    bin/mbasic$(TARGET): $(mbasic)
    	$(CC) $(LDFLAGS) $(mbasic) -o bin/mbasic$(TARGET)
    
    bin/minicomp$(TARGET): $(minicomp)
    	$(CC) $(LDFLAGS) $(minicomp) -o bin/minicomp$(TARGET)
    
    bin/dtgen: datatypes/dtgen.c datatypes/datatypes.h datatypes/dtconv.h
    	$(NCC) datatypes/dtgen.c -o bin/dtgen -Idatatypes $(NLDFLAGS)
    
    $(TRGDIR)/dt.h: bin/dtgen $(TRGDIR)/machine.dt
    	bin/dtgen $(TRGDIR)/machine.dt $(TRGDIR)/dt.h $(TRGDIR)/dt.c
    
    $(TRGDIR)/dt.c: bin/dtgen $(TRGDIR)/machine.dt
    	bin/dtgen $(TRGDIR)/machine.dt $(TRGDIR)/dt.h $(TRGDIR)/dt.c
    
    $(TRGDIR)/dt.o: $(TRGDIR)/dt.h $(TRGDIR)/dt.c
    	$(CC) -c $(TRGDIR)/dt.c -o $(TRGDIR)/dt.o -I$(TRGDIR) -Idatatypes
    
    $(TRGDIR)/tasm.o: tasm.c supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c tasm.c -o $(TRGDIR)/tasm.o -I$(TRGDIR)
    
    $(TRGDIR)/mbasic.o: mbasic.c supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c mbasic.c -o $(TRGDIR)/mbasic.o -I$(TRGDIR)
    
    $(TRGDIR)/minicomp.o: minicomp.c minicomp.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c minicomp.c -o $(TRGDIR)/minicomp.o -I$(TRGDIR)
    
    $(TRGDIR)/minicompg.tab.o: minicompg.y minicomplexer.c minicomp.h supp.h
    	bison minicompg.y
    	$(CC) -c minicompg.tab.c -o $(TRGDIR)/minicompg.tab.o -I$(TRGDIR)
    
    $(TRGDIR)/supp.o: supp.c supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c supp.c -o $(TRGDIR)/supp.o -I$(TRGDIR)
    
    $(TRGDIR)/main.o: main.c vbc.h supp.h vbcc_cpp.h ucpp/cpp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c main.c -o $(TRGDIR)/main.o -I$(TRGDIR)
    
    $(TRGDIR)/vars.o: vars.c vbc.h supp.h $(TRGDIR)/machine.h errors.h $(TRGDIR)/dt.h
    	$(CC) -c vars.c -o $(TRGDIR)/vars.o -I$(TRGDIR)
    
    $(TRGDIR)/declaration.o: declaration.c vbc.h supp.h vbcc_cpp.h ucpp/cpp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c declaration.c -o $(TRGDIR)/declaration.o -I$(TRGDIR)
    
    $(TRGDIR)/parse_expr.o: parse_expr.c vbc.h supp.h vbcc_cpp.h ucpp/cpp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c parse_expr.c -o $(TRGDIR)/parse_expr.o -I$(TRGDIR)
    
    $(TRGDIR)/type_expr.o: type_expr.c vbc.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c type_expr.c -o $(TRGDIR)/type_expr.o -I$(TRGDIR)
    
    $(TRGDIR)/ic.o: ic.c vbc.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c ic.c -o $(TRGDIR)/ic.o -I$(TRGDIR)
    
    $(TRGDIR)/statements.o: statements.c vbc.h supp.h vbcc_cpp.h ucpp/cpp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c statements.c -o $(TRGDIR)/statements.o -I$(TRGDIR)
    
    $(TRGDIR)/opt.o: opt.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c opt.c -o $(TRGDIR)/opt.o -I$(TRGDIR)
    
    $(TRGDIR)/av.o: av.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c av.c -o $(TRGDIR)/av.o -I$(TRGDIR)
    
    $(TRGDIR)/rd.o: rd.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c rd.c -o $(TRGDIR)/rd.o -I$(TRGDIR)
    
    $(TRGDIR)/regs.o: regs.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c regs.c -o $(TRGDIR)/regs.o -I$(TRGDIR)
    
    $(TRGDIR)/flow.o: flow.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c flow.c -o $(TRGDIR)/flow.o -I$(TRGDIR)
    
    $(TRGDIR)/cse.o: cse.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c cse.c -o $(TRGDIR)/cse.o -I$(TRGDIR)
    
    $(TRGDIR)/cp.o: cp.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c cp.c -o $(TRGDIR)/cp.o -I$(TRGDIR)
    
    $(TRGDIR)/loop.o: loop.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c loop.c -o $(TRGDIR)/loop.o -I$(TRGDIR)
    
    $(TRGDIR)/alias.o: alias.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c alias.c -o $(TRGDIR)/alias.o -I$(TRGDIR)
    
    $(TRGDIR)/preproc.o: preproc.c vbpp.h supp.h vbc.h $(TRGDIR)/dt.h
    	$(CC) -c preproc.c -o $(TRGDIR)/preproc.o -I$(TRGDIR)
    
    $(TRGDIR)/assert.o: ucpp/assert.c ucpp/cpp.h ucpp/mem.h ucpp/hash.h ucpp/tune.h $(TRGDIR)/dt.h
    	$(CC) -DNO_UCPP_ERROR_FUNCTIONS -c ucpp/assert.c -o $(TRGDIR)/assert.o -I$(TRGDIR)
    
    $(TRGDIR)/cpp.o: ucpp/cpp.c ucpp/cpp.h ucpp/mem.h ucpp/hash.h ucpp/tune.h $(TRGDIR)/dt.h
    	$(CC) -DNO_UCPP_ERROR_FUNCTIONS -c ucpp/cpp.c -o $(TRGDIR)/cpp.o -I$(TRGDIR)
    
    $(TRGDIR)/hash.o: ucpp/hash.c ucpp/cpp.h ucpp/mem.h ucpp/hash.h ucpp/tune.h $(TRGDIR)/dt.h
    	$(CC) -DNO_UCPP_ERROR_FUNCTIONS -c ucpp/hash.c -o $(TRGDIR)/hash.o -I$(TRGDIR)
    
    $(TRGDIR)/lexer.o: ucpp/lexer.c ucpp/cpp.h ucpp/mem.h ucpp/hash.h ucpp/tune.h $(TRGDIR)/dt.h
    	$(CC) -DNO_UCPP_ERROR_FUNCTIONS -c ucpp/lexer.c -o $(TRGDIR)/lexer.o -I$(TRGDIR)
    
    $(TRGDIR)/macro.o: ucpp/macro.c ucpp/cpp.h ucpp/mem.h ucpp/hash.h ucpp/tune.h $(TRGDIR)/dt.h
    	$(CC) -DNO_UCPP_ERROR_FUNCTIONS -c ucpp/macro.c -o $(TRGDIR)/macro.o -I$(TRGDIR)
    
    $(TRGDIR)/mem.o: ucpp/mem.c ucpp/cpp.h ucpp/mem.h ucpp/hash.h ucpp/tune.h $(TRGDIR)/dt.h
    	$(CC) -DNO_UCPP_ERROR_FUNCTIONS -c ucpp/mem.c -o $(TRGDIR)/mem.o -I$(TRGDIR)
    
    $(TRGDIR)/eval.o: ucpp/eval.c ucpp/cpp.h ucpp/mem.h ucpp/tune.h $(TRGDIR)/dt.h
    	$(CC) -DNO_UCPP_ERROR_FUNCTIONS -c ucpp/eval.c -o $(TRGDIR)/eval.o -I$(TRGDIR)
    
    $(TRGDIR)/machine.o: $(TRGDIR)/machine.c supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h dwarf2.c
    	$(CC) -c $(TRGDIR)/machine.c -o $(TRGDIR)/machine.o -I$(TRGDIR) -I.
    
    $(TRGDIR)/opts.o: opt.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c -DNO_OPTIMIZER opt.c -o $(TRGDIR)/opts.o -I$(TRGDIR)
    
    $(TRGDIR)/regss.o: regs.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c -DNO_OPTIMIZER regs.c -o $(TRGDIR)/regss.o -I$(TRGDIR)
    
    $(TRGDIR)/vsc.o: vsc/vsc.h vsc/vsc.c $(TRGDIR)/schedule.h
    	$(CC) -c vsc/vsc.c -o $(TRGDIR)/vsc.o -I$(TRGDIR)
    
    $(TRGDIR)/schedule.o: vsc/vsc.h $(TRGDIR)/schedule.h $(TRGDIR)/schedule.c
    	$(CC) -c $(TRGDIR)/schedule.c -o $(TRGDIR)/schedule.o -I$(TRGDIR) -Ivsc
    
    
    # Graph coloring register allocator by Alex
    $(TRGDIR)/AdjList.o: GCRegAlloc/AdjList.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c GCRegAlloc/AdjList.c -o $(TRGDIR)/AdjList.o -IGCRegAlloc -I$(TRGDIR)
    
    $(TRGDIR)/DUChain.o: GCRegAlloc/DUChain.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c GCRegAlloc/DUChain.c -o $(TRGDIR)/DUChain.o -IGCRegAlloc -I$(TRGDIR)
    
    $(TRGDIR)/ICodeInsertion.o: GCRegAlloc/ICodeInsertion.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c GCRegAlloc/ICodeInsertion.c -o $(TRGDIR)/ICodeInsertion.o -IGCRegAlloc -I$(TRGDIR)
    
    $(TRGDIR)/NodeList.o: GCRegAlloc/NodeList.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c GCRegAlloc/NodeList.c -o $(TRGDIR)/NodeList.o -IGCRegAlloc -I$(TRGDIR)
    
    $(TRGDIR)/RAllocMain.o: GCRegAlloc/RAllocMain.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c GCRegAlloc/RAllocMain.c -o $(TRGDIR)/RAllocMain.o -IGCRegAlloc -I$(TRGDIR)
    
    $(TRGDIR)/Web.o: GCRegAlloc/Web.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    	$(CC) -c GCRegAlloc/Web.c -o $(TRGDIR)/Web.o -IGCRegAlloc -I$(TRGDIR)

  5. #5
    Registered User
    Join Date
    Sep 2006
    Location
    Beaverton, Oregon, United States
    Posts
    163
    I altered the makefile for mingw32. About the only changes I did to it.

  6. #6
    Registered User
    Join Date
    Sep 2006
    Location
    Beaverton, Oregon, United States
    Posts
    163
    Got some input elsewhere. What do you guys think?

    It's telling you the problem, you don't have anything named "bin" for it to run. The last line it's trying to execute is "bin/dtgen". Now, that might be confusing because you have a bin folder -- but note that it's not saying you are missing the bin /folder/, it says /command/.

    The solution actually comes down to experience, I think. The other thing to notice is the error is coming from NMAKE, which is Microsoft's make program, and you probably want to be running GNU make. The error is because of the forward slashes ('/') which are correct for GNU tools but incorrect for DOS/Windows. It thinks you mean "bin /dtgen" (as a switch).

    This is a common problem when you start installing multiple compilers on one machine. Easiest fix is to change your path when you start the shell so that the GNU bin folder (with 'make.exe' and 'gcc.exe', etc) is first, something like this:

    Code:
    PATH=c:\vbcc\bin;%PATH%

    (except use the right path for your machine. Don't forget the %PATH% at the end, or your other programs won't work). Don't change it globally or Visual Studio will stop working, just do it in the command prompt. Once you have it right, you can make a batch file to set it up quickly.
    So I need to somehow use the GNU make with this? nuts.

  7. #7
    Registered User
    Join Date
    May 2012
    Posts
    1,066
    Quote Originally Posted by A34Chris View Post
    So I need to somehow use the GNU make with this? nuts.
    You should already have mingw32-make on your system.
    So just use it instead of make (which is the MS make).

    Bye, Andreas

  8. #8
    Registered User
    Join Date
    Sep 2006
    Location
    Beaverton, Oregon, United States
    Posts
    163
    Well that worked... kinda....

    It wont get back to the command prompt...

    Code:
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    
    C:\Documents and Settings\Cruisin'>cd c:
    C:\Documents and Settings\Cruisin'
    
    C:\Documents and Settings\Cruisin'>cd c:\
    
    C:\>set VBCC=c:\vbcc
    
    C:\>set PATH=c:\vbcc\bin;%PATH%
    
    C:\>set PATH=c:\stuff\mingw\bin;%PATH%
    
    C:\>cd vbcc
    
    C:\vbcc>mingw32-make TARGET=m68k
    mingw32-gcc-4.6.2 -std=c9x -g  frontend/vc.c -o bin/vc -lm
    mingw32-gcc-4.6.2 -std=c9x -g  vprof/vprof.c -o bin/vprof -lm
    mingw32-gcc-4.6.2 -std=c9x -g  datatypes/dtgen.c -o bin/dtgen -Idatatypes -lm
    bin/dtgen machines/m68k/machine.dt machines/m68k/dt.h machines/m68k/dt.c
    ...and I can't kill the enviroment window.... rebooting....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 10-29-2012, 03:33 AM
  2. Replies: 4
    Last Post: 07-24-2011, 09:38 PM
  3. Replies: 6
    Last Post: 08-23-2008, 01:16 PM
  4. Replies: 3
    Last Post: 10-02-2007, 09:12 PM
  5. Comile problem using latest Dev C++ Compiler
    By shiny_dico_ball in forum C++ Programming
    Replies: 6
    Last Post: 06-06-2003, 05:32 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21