Giter Club home page Giter Club logo

Comments (4)

andrewbird avatar andrewbird commented on May 26, 2024

I tried a couple of things
1/ Switched to Freecom and FDPP, same issue
2/ Switched to Freecom and FreeDOS 1.20 seems better for case without loadfix, but with loadfix the problem remains

C:\mytest>gmake clean
del *.obj
one file removed.

C:\mytest>rem just compiler
C:\mytest>gmake test1
cl /c import.c
Microsoft (R) C Optimizing Compiler Version 5.10
Copyright (c) Microsoft Corp 1984, 1985, 1986, 1987, 1988. All rights reserved.
 
import.c

C:\mytest>rem compiler with loadfix
C:\mytest>gmake test2
loadfix cl /c import.c
gmake.exe: *** [Makefile:7: test2] Error -1

C:\mytest>rem just echo
C:\mytest>gmake test3
echo hello import.c > import.obj

C:\mytest>rem loadfixed compiler without gmake
C:\mytest>loadfix cl /c import.c
Microsoft (R) C Optimizing Compiler Version 5.10
Copyright (c) Microsoft Corp 1984, 1985, 1986, 1987, 1988. All rights reserved.
 
import.c

from comcom64.

stsp avatar stsp commented on May 26, 2024

The bugs are all in your test case.
First, you screw up PATH variable,
excluding the path to command.com
from it. If you didn't, you could write
in a makefile:
command /c loadfix cl /c $<
because loadfix is not an external cmd.

Note that gmake adds an additional
confusion here. It seems to have the
table of command.com commands,
which it would exec via command.com
(like echo), but loadfix/loadhigh are
not among those, otherwise things
would work for you as-is.

from comcom64.

andrewbird avatar andrewbird commented on May 26, 2024

Ah, okay, thanks! It's the first time I used gmake in DOS, I assumed each line was run in a shell and that COMSPEC would locate that.

from comcom64.

stsp avatar stsp commented on May 26, 2024

I assumed each line was run in a shell and that COMSPEC would locate that.

As I said, gmake seems to be doing that
for the commands that it knows to come
from a shell. You can find the list of such
commands in a gmake binary, but
loadfix/loadhigh are not there.

from comcom64.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.