[jamming] building jam with Visual C++ 2005 Express Edition Beta 2

Anuj Goyal anuj.goyal at gmail.com
Sat Apr 30 21:08:28 PDT 2005


I come close, but have link errors.... anyone else having more luck?  

# Makefile
# change your MSVCNT directory.

# NT (with Microsoft compiler)
# Use FATFS if building on a DOS FAT file system
MSVCNT=D:\vc8beta2\VC
Lib = $(MSVCNT)\lib
Include = $(MSVCNT)\include
CC = cl /nologo
# turn off warning 4996
CFLAGS = /I$(Include) /DNT /wd4996 /MT
TARGET = /Fejam0
LINKLIBS = $(Lib)\oldnames.lib $(Lib)\kernel32.lib $(Lib)\msvcmrt.lib
#LINKLIBS = $(Lib)\oldnames.lib $(Lib)\kernel32.lib $(Lib)\libcmt.lib
EXENAME = .\jam0.exe

SOURCES = \
builtins.c command.c compile.c execunix.c execvms.c expand.c filent.c
fileos2.c fileunix.c filevms.c glob.c hash.c headers.c jam.c jambase.c
jamgram.c lists.c make.c make1.c newstr.c option.c parse.c pathunix.c
pathvms.c regexp.c rules.c scan.c search.c timestamp.c variable.c

all: $(EXENAME)
	$(EXENAME)

$(EXENAME):
	$(CC) $(TARGET) $(CFLAGS) $(SOURCES) $(LINKLIBS)




####
These are the errors that I get.







D:\jam>make
cl /nologo /Fejam0 /ID:\vc8beta2\VC\include /DNT /wd4996 /MT builtins.c command.
c compile.c execunix.c execvms.c expand.c filent.c fileos2.c fileunix.c filevms.
c glob.c hash.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c newst
r.c option.c parse.c pathunix.c pathvms.c regexp.c rules.c scan.c search.c times
tamp.c variable.c D:\vc8beta2\VC\lib\oldnames.lib D:\vc8beta2\VC\lib\kernel32.li
b D:\vc8beta2\VC\lib\msvcmrt.lib
builtins.c
command.c
compile.c
execunix.c
execvms.c
expand.c
filent.c
fileos2.c
fileunix.c
filevms.c
glob.c
hash.c
headers.c
jam.c
jambase.c
jamgram.c
lists.c
make.c
make1.c
newstr.c
Generating Code...
Compiling...
option.c
parse.c
pathunix.c
pathvms.c
regexp.c
rules.c
scan.c
search.c
timestamp.c
variable.c
Generating Code...
execunix.obj : error LNK2019: unresolved external symbol
_GetCurrentProcessId referenced in function _execcmd
execunix.obj : error LNK2019: unresolved external symbol _GetLastError
referenced in function _my_wait
execunix.obj : error LNK2019: unresolved external symbol
_WaitForMultipleObjects referenced in function _my_wait
execunix.obj : error LNK2019: unresolved external symbol _CloseHandle
referenced in function _my_wait
execunix.obj : error LNK2019: unresolved external symbol
_GetExitCodeProcess referenced in function _my_wait
jam0.exe : fatal error LNK1120: 5 unresolved externals make: ***
[.\jam0.exe] Error 2




More information about the jamming mailing list