roelandjansen / pcmos386v501

PC-MOS/386 v5.01 and up, including cdrom driver sources.
GNU General Public License v3.0
418 stars 60 forks source link

MAKEMOS.BAT fails to build C sources due to missing headers and libraries #10

Closed dcoshea closed 5 years ago

dcoshea commented 7 years ago

When MAKEMOS.BAT is modified to pass the -u option to make so that everything is rebuilt (as discussed in issue #9), the build fails to compile compfile.c because stdio.h can't be found. Once that issue is resolved, a library cannot be found.

The solution is to set the following environment variables to refer to the corresponding directories from the Git repository:

BIN/NEW-VARS.BAT sets these variables (amongst others):

set LIB=C:\LIB;%LIB%
set INCLUDE=C:\INCLUDE;%INCLUDE%

so one solution is to arrange for the above Git directories to be in those locations, then run that batch file.

For what it's worth, what I have actually done is to modify MAKEMOS.BAT to handle everything being under E:\, and added these lines to that batch file:

set INCLUDE=E:\INCLUDE
set LIB=E:\LIBS