Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
dcoshea opened this issue Sep 17, 2017 · 0 comments
Closed

Comments

@dcoshea
Copy link

dcoshea commented Sep 17, 2017

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:

  • INCLUDE: INCLUDE
  • LIB: SOURCES/src/libs

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
andrewbird added a commit to andrewbird/pcmos386 that referenced this issue Jan 20, 2019
Set the locations of the include and libraries used by CL and LINK here
so that we don't need to specify a DOS drive or absolute path..

Note: It seems that the MS toolchain libraries are contained in the same
libs directory that holds the TSL supplied rsa library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant