rupvis
asked on
Path issues when compiling my DLL
I am trying to compile my DLL from command line utility nmake. I am running Visual C++ 6.0 Enterprise edition. The path to "C:\Program Files\Microsoft Visual Studio\VC98\Include" is available in my classpath environment variable and bin also is present in Path variable. However when i run namake it says it didnt find cl.exe. I had to go through the process of copying over these files to my project folder which included c1.exe, stdio.h, windows.h etc etc..
Why would the compiler not pick these files as the location has already been added?
Any help will be greatly appreciated.
Thanks.
Why would the compiler not pick these files as the location has already been added?
Any help will be greatly appreciated.
Thanks.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
out put from nmake /p doeramon255
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
MACROS:
cvarsmt = $(cvars) -D_MT -MT
PROCESSOR_IDENTIFIER = x86 Family 6 Model 15 Stepping 11, GenuineIntel
INCLUDE = C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\incl
ude\
psxlibs = libcpsx.lib psxdll.lib psxrtl.lib oldnames.lib
COMSPEC = C:\WINDOWS\system32\cmd.ex e
scall = -Gz
psxvars = -D_POSIX_
_NMAKE_VER = 7.10.3077
ole2libs = $(olelibs)
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;. VBE;.JS;.J SE;.WSF;.W SH
MAKE = nmake
cvars = -DWIN32 $(noansi) -D_WIN32
olelibsdll = ole32.lib uuid.lib oleaut32.lib $(guilibsdll)
conlibsdll = $(libcdll) $(baselibs)
SYSTEMROOT = C:\WINDOWS
guilibsdll = $(libcdll) $(winlibs)
PATH = C:\WINDOWS\system32;C:\WIN DOWS;C:\WI NDOWS\Syst em32\Wbem; C:\Progr
am Files\Java\jdk1.5.0_14\bin ;C:\Progra m Files\Microsoft SQL Server\80\Tools\BIN
N;C:\apache-ant-1.7.0\bin; C:\Program Files\Java\jdk1.5.0_14\bin ;C:\Progra m Files
\Microsoft SQL Server\80\Tools\Binn\;C:\P rogram Files\Microsoft SQL Server\90\To
ols\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Pro gram Files\Mi
crosoft SQL Server\90\Tools\Binn\VSShe ll\Common7 \IDE\;C:\P rogram Files\Microsoft
Visual Studio 8\Common7\IDE\PrivateAssem blies\;C:\ ASG\ASGUMA \ROCHADE\b in;C:\PRO
GRA~1\ATT\Graphviz\bin;C:\ Program Files\QuickTime\QTSystem\; C:\Program Files\Mic
rosoft Visual Studio .NET 2003\SDK\v1.1\Bin;C:\WINDO WS\Microso ft.NET\Fra mework\v
2.0.50727;D:\Downloads\ASG Downloads\glassfish\bin;C: \instantcl ient-basic -win32-
10.2.0.4\instantclient_10_ 2;C:\Progr am Files\Microsoft Visual Studio\VC98\Includ
e;
NUMBER_OF_PROCESSORS = 2
TEMP = C:\DOCUME~1\rupeshv\LOCALS ~1\Temp
cvarsmtdll = $(cvarsmt) -D_DLL
baselibs = kernel32.lib $(optlibs) $(winsocklibs) advapi32.lib
SESSIONNAME = Console
_WIN32_MAK_ = 1
conflags = $(conlflags)
USERPROFILE = C:\Documents and Settings\rupeshv
guiflags = $(guilflags)
COMMONPROGRAMFILES = C:\Program Files\Common Files
LOGONSERVER = \\MASING3DC1
HOMEPATH = \Documents and Settings\rupeshv
ole2libsdll = $(olelibsdll)
cvarsdll = $(cvars) -D_MT -D_DLL -MD
__COMPAT_LAYER = EnableNXShowUI
SYSTEMDRIVE = C:
USERNAME = rupeshv
psxflags = $(psxlflags)
TARGETOS = WINNT
cdebug = -Z7 -Od
ANT_HOME = C:\apache-ant-1.7.0
DLLENTRY = @12
COBOL = cobol
cflags = $(cflags) -D_WIN32_IE=$(_WIN32_IE) -DWINVER=$(NMAKE_WINVER)
$(cflags) -D_WINNT -D_WIN32_WINNT=$(NMAKE_WIN VER)
$(ccommon) -D_X86_=1
ldebug = -debug:full -debugtype:cv
lflags = /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE /RELEASE /NOLOGO
libcmt = libcmt.lib oldnames.lib
ALLUSERSPROFILE = C:\Documents and Settings\All Users
implib = lib
VSEDEFLOGDIR = C:\Documents and Settings\All Users\Application Data\McAfee\Desk
topProtection
BC = bc
CC = cl
cvtobj = REM !!! CVTOBJ is no longer necessary - please remove !!!
PROGRAMFILES = C:\Program Files
MAKEFLAGS = P
PROCESSOR_REVISION = 0f0b
DEFLOGDIR = C:\Documents and Settings\All Users\Application Data\McAfee\Desk
topProtection
COMPUTERNAME = MASINGXRUPESH
rcvars = -DWIN32 -D_WIN32 -DWINVER=$(NMAKE_WINVER) $(noansi)
AS = ml
RC = rc
cvtres = REM !!! CVTRES is no longer necessary - please remove !!!
PROCESSOR_LEVEL = 6
libc = libc.lib oldnames.lib
_WIN32_IE = 0x0300
PROCESSOR_ARCHITECTURE = x86
OS = Windows_NT
HOMEDRIVE = C:
CLASSPATH = .;C:\Program Files\Java\jdk1.5.0_14\jre \lib\mail. jar;C:\Pro gram
Files\Java\jdk1.5.0_14\jre \lib\dsn.j ar;C:\Prog ram Files\Java\jdk1.5.0_14\jre \lib
\imap.jar;C:\Program Files\Java\jdk1.5.0_14\jre \lib\maila pi.jar;C:\ Program Files
\Java\jdk1.5.0_14\jre\lib\ pop3.jar;C :\Program Files\Java\jdk1.5.0_14\jre \lib\smt
p.jar;C:\Program Files\Java\jdk1.5.0_14\jre \lib\activ ation.jar; C:\Program Files\
Java\jre1.6.0_06\lib\ext\Q TJava.zip; E:\Fit\lib \OpenForec ast-0.4.0. jar;C:\Tur nkey
\tomcat\lib\jtds-1.2.jar;C :\ASG\ASGU MA\bin\lax .jar;C:\AS G\ASGUMA\b in\service .jar
;C:\ASG\ASGUMA\bin\umaadap ters.jar;C :\ASG\ASGU MA\bin\uma comms.jar; C:\ASG\ASG UMA\
bin\umacomponents.jar;C:\A SG\ASGUMA\ bin\umadat aflow.jar; C:\ASG\ASG UMA\bin\um adat
aobjects.jar;C:\ASG\ASGUMA \bin\umade mo.jar;C:\ ASG\ASGUMA \bin\umade signer.jar ;C:\
ASG\ASGUMA\bin\umafaces.ja r;C:\ASG\A SGUMA\bin\ umafederat ion.jar;C: \ASG\ASGUM A\bi
n\umainstall.jar;C:\ASG\AS GUMA\bin\u maitemdata .jar;C:\AS G\ASGUMA\b in\umaproc esso
rs.jar;C:\ASG\ASGUMA\bin\u mareposito ry.jar;C:\ ASG\ASGUMA \bin\umare sources.ja r;C:
\ASG\ASGUMA\bin\umarunner. jar;C:\ASG \ASGUMA\bi n\umasecur ity.jar;C: \ASG\ASGUM A\bi
n\umaservice.jar;C:\ASG\AS GUMA\bin\u maui.jar;C :\ASG\ASGU MA\bin\uma util.jar;C :\AS
G\ASGUMA\bin\umawebservice .jar;C:\Pr ogram Files\Microsoft Visual Studio\VC98\Inc
lude;C:\Program Files\Microsoft Visual Studio\VC98\Bin;C:\ASG\ASG UMA\bin\um awidg
et.jar;
NMAKE_WINVER = 0x0400
winsocklibs = ws2_32.lib mswsock.lib
JAVA_HOME = C:\Program Files\Java\jdk1.5.0_14
link = link
PASCAL = pl
dlllflags = $(lflags) -entry:_DllMainCRTStartup$ (DLLENTRY) -dll
linkdebug = $(ldebug)
conlflags = $(lflags) -subsystem:console,$(APPVE R)
TNS_ADMIN = C:\instantclient-basic-win 32-10.2.0. 4\instantc lient_10_2
guilflags = $(lflags) -subsystem:windows,$(APPVE R)
savlflags = $(lflags) -subsystem:windows,$(APPVE R) -entry:WinMainCRTStartup
cc = cl
QTJAVA = C:\Program Files\Java\jre1.6.0_06\lib \ext\QTJav a.zip
olelibsmt = ole32.lib uuid.lib oleaut32.lib $(guilibsmt)
conlibsmt = $(libcmt) $(baselibs)
hc = hcrtf -xn
WINDIR = C:\WINDOWS
APPVER = 4.0
VS80COMNTOOLS = C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\
VS71COMNTOOLS = C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools
\
guilibsmt = $(libcmt) $(winlibs)
psxlflags = $(lflags) -subsystem:posix -entry:__PosixProcessStart up
rc = rc
libcdll = msvcrt.lib oldnames.lib
LIB = C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\
;C:\Program Files\SQLXML 4.0\bin\
USERDNSDOMAIN = asg.com
CLIENTNAME = Console
rcflags = /r
PROMPT = $P$G
CPP = cl
FOR = fl32
CPU = i386
$(PROCESSOR_ARCHITECTURE)
olelibs = ole32.lib uuid.lib oleaut32.lib $(guilibs)
conlibs = $(libc) $(baselibs)
ccommon = -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo
FP_NO_HOST_CHECK = NO
guilibs = $(libc) $(winlibs)
TMP = C:\DOCUME~1\rupeshv\LOCALS ~1\Temp
CXX = cl
ORACLE_SID = 10.30.0.95
USERDOMAIN = ASG
winlibs = $(baselibs) user32.lib gdi32.lib comdlg32.lib winspool.lib
APPDATA = C:\Documents and Settings\rupeshv\Applicati on Data
ole2libsmt = $(olelibsmt)
optlibs =
MAKEDIR = E:\hook\hk\E2EHook\hook
INFERENCE RULES:
.asm.exe:
commands: $(AS) $(AFLAGS) $*.asm
.asm.obj:
commands: $(AS) $(AFLAGS) /c $*.asm
.c.exe:
commands: $(CC) $(CFLAGS) $<
.c.obj:
commands: $(CC) $(CFLAGS) /c $<
.cpp.exe:
commands: $(CPP) $(CPPFLAGS) $<
.cpp.obj:
commands: $(CPP) $(CPPFLAGS) /c $<
.cxx.exe:
commands: $(CXX) $(CXXFLAGS) $<
.cxx.obj:
commands: $(CXX) $(CXXFLAGS) /c $<
.bas.obj:
commands: $(BC) $(BFLAGS) $*.bas;
.cbl.exe:
commands: $(COBOL) $(COBFLAGS) $*.cbl, $*.exe;
.cbl.obj:
commands: $(COBOL) $(COBFLAGS) $*.cbl;
.f.exe:
commands: $(FOR) $(FFLAGS) $*.f
.f.obj:
commands: $(FOR) /c $(FFLAGS) $*.f
.f90.exe:
commands: $(FOR) $(FFLAGS) $*.f90
.f90.obj:
commands: $(FOR) /c $(FFLAGS) $*.f90
.for.exe:
commands: $(FOR) $(FFLAGS) $*.for
.for.obj:
commands: $(FOR) /c $(FFLAGS) $*.for
.pas.exe:
commands: $(PASCAL) $(PFLAGS) $*.pas
.pas.obj:
commands: $(PASCAL) /c $(PFLAGS) $*.pas
.rc.res:
commands: $(RC) $(RFLAGS) /r $*
.SUFFIXES: .exe .obj .asm .c .cpp .cxx .bas .cbl .f .f90 .for .pas .res .rc
TARGETS:
hooks32.res:
flags:
dependents: hooks32.rc hooks32.h
commands: $(rc) $(rcvars) -r hooks32.rc
hooks32.exp:
flags:
dependents: hooks32.obj hooks32.def
commands: $(implib) -machine:$(CPU) -def:hooks32.def
hooks32.obj ptdlgs.obj ptprint.obj ptfind.obj hooksdll.obj -out:ho
oks32.lib
all:
flags:
dependents: hooks32.exe hooksdll.dll
commands:
hooksdll.lib:
flags:
dependents: hooksdll.obj hooksdll.def hooksdll.rbj
commands: $(implib) -machine:$(CPU) -def:hooksdll.def
hooksdll.obj -out:hooksdll.lib
hooksdll.obj:
flags:
dependents: hooksdll.c hooks32.h
commands: $(cc) $(cflags) $(cvars) $(cdebug) hooksdll.c
hooksdll.dll:
flags:
dependents: hooksdll.obj hooksdll.def hooksdll.lib
commands: $(link) $(linkdebug) MSVCRT.LIB /NODEFAULTLIB -base
:0x1C000000 -dll -entry:LibMain$(DLLENTRY) -out:hooksdll.d
ll hooksdll.exp hooksdll.obj hooksdll.rbj $(guilibsdll)
hooksdll.rbj:
flags:
dependents: hooksdll.res
commands: cvtres -$(CPU) hooksdll.res -o hooksdll.rbj
hooks32.obj:
flags:
dependents: hooks32.c hooks32.h
commands: $(cc) $(cflags) $(cvars) $(cdebug) hooks32.c
hooks32.rbj:
flags:
dependents: hooks32.res
commands: cvtres -$(CPU) hooks32.res -o hooks32.rbj
hooksdll.res:
flags:
dependents: hooksdll.rc
commands: $(rc) $(rcvars) -r hooksdll.rc
hooks32.exe:
flags:
dependents: hooks32.obj hooksdll.dll hooksdll.lib hooks32.rbj
hooks32.def
commands: $(link) $(linkdebug) MSVCRT.LIB $(guiflags) -out:hook
s32.exe /ENTRY:mainCRTStartup hooks32.obj hooksdll.lib hooks32.rbj $(guilibs)
cl -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -
D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DWIN32 -D_WIN32 -Z7 -O
d hooks32.c
NMAKE : fatal error U1077: 'cl' : return code '0xc0000135'
Stop.
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
MACROS:
cvarsmt = $(cvars) -D_MT -MT
PROCESSOR_IDENTIFIER = x86 Family 6 Model 15 Stepping 11, GenuineIntel
INCLUDE = C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\incl
ude\
psxlibs = libcpsx.lib psxdll.lib psxrtl.lib oldnames.lib
COMSPEC = C:\WINDOWS\system32\cmd.ex
scall = -Gz
psxvars = -D_POSIX_
_NMAKE_VER = 7.10.3077
ole2libs = $(olelibs)
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.
MAKE = nmake
cvars = -DWIN32 $(noansi) -D_WIN32
olelibsdll = ole32.lib uuid.lib oleaut32.lib $(guilibsdll)
conlibsdll = $(libcdll) $(baselibs)
SYSTEMROOT = C:\WINDOWS
guilibsdll = $(libcdll) $(winlibs)
PATH = C:\WINDOWS\system32;C:\WIN
am Files\Java\jdk1.5.0_14\bin
N;C:\apache-ant-1.7.0\bin;
\Microsoft SQL Server\80\Tools\Binn\;C:\P
ols\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Pro
crosoft SQL Server\90\Tools\Binn\VSShe
Visual Studio 8\Common7\IDE\PrivateAssem
GRA~1\ATT\Graphviz\bin;C:\
rosoft Visual Studio .NET 2003\SDK\v1.1\Bin;C:\WINDO
2.0.50727;D:\Downloads\ASG
10.2.0.4\instantclient_10_
e;
NUMBER_OF_PROCESSORS = 2
TEMP = C:\DOCUME~1\rupeshv\LOCALS
cvarsmtdll = $(cvarsmt) -D_DLL
baselibs = kernel32.lib $(optlibs) $(winsocklibs) advapi32.lib
SESSIONNAME = Console
_WIN32_MAK_ = 1
conflags = $(conlflags)
USERPROFILE = C:\Documents and Settings\rupeshv
guiflags = $(guilflags)
COMMONPROGRAMFILES = C:\Program Files\Common Files
LOGONSERVER = \\MASING3DC1
HOMEPATH = \Documents and Settings\rupeshv
ole2libsdll = $(olelibsdll)
cvarsdll = $(cvars) -D_MT -D_DLL -MD
__COMPAT_LAYER = EnableNXShowUI
SYSTEMDRIVE = C:
USERNAME = rupeshv
psxflags = $(psxlflags)
TARGETOS = WINNT
cdebug = -Z7 -Od
ANT_HOME = C:\apache-ant-1.7.0
DLLENTRY = @12
COBOL = cobol
cflags = $(cflags) -D_WIN32_IE=$(_WIN32_IE) -DWINVER=$(NMAKE_WINVER)
$(cflags) -D_WINNT -D_WIN32_WINNT=$(NMAKE_WIN
$(ccommon) -D_X86_=1
ldebug = -debug:full -debugtype:cv
lflags = /NODEFAULTLIB /INCREMENTAL:NO /PDB:NONE /RELEASE /NOLOGO
libcmt = libcmt.lib oldnames.lib
ALLUSERSPROFILE = C:\Documents and Settings\All Users
implib = lib
VSEDEFLOGDIR = C:\Documents and Settings\All Users\Application Data\McAfee\Desk
topProtection
BC = bc
CC = cl
cvtobj = REM !!! CVTOBJ is no longer necessary - please remove !!!
PROGRAMFILES = C:\Program Files
MAKEFLAGS = P
PROCESSOR_REVISION = 0f0b
DEFLOGDIR = C:\Documents and Settings\All Users\Application Data\McAfee\Desk
topProtection
COMPUTERNAME = MASINGXRUPESH
rcvars = -DWIN32 -D_WIN32 -DWINVER=$(NMAKE_WINVER) $(noansi)
AS = ml
RC = rc
cvtres = REM !!! CVTRES is no longer necessary - please remove !!!
PROCESSOR_LEVEL = 6
libc = libc.lib oldnames.lib
_WIN32_IE = 0x0300
PROCESSOR_ARCHITECTURE = x86
OS = Windows_NT
HOMEDRIVE = C:
CLASSPATH = .;C:\Program Files\Java\jdk1.5.0_14\jre
Files\Java\jdk1.5.0_14\jre
\imap.jar;C:\Program Files\Java\jdk1.5.0_14\jre
\Java\jdk1.5.0_14\jre\lib\
p.jar;C:\Program Files\Java\jdk1.5.0_14\jre
Java\jre1.6.0_06\lib\ext\Q
\tomcat\lib\jtds-1.2.jar;C
;C:\ASG\ASGUMA\bin\umaadap
bin\umacomponents.jar;C:\A
aobjects.jar;C:\ASG\ASGUMA
ASG\ASGUMA\bin\umafaces.ja
n\umainstall.jar;C:\ASG\AS
rs.jar;C:\ASG\ASGUMA\bin\u
\ASG\ASGUMA\bin\umarunner.
n\umaservice.jar;C:\ASG\AS
G\ASGUMA\bin\umawebservice
lude;C:\Program Files\Microsoft Visual Studio\VC98\Bin;C:\ASG\ASG
et.jar;
NMAKE_WINVER = 0x0400
winsocklibs = ws2_32.lib mswsock.lib
JAVA_HOME = C:\Program Files\Java\jdk1.5.0_14
link = link
PASCAL = pl
dlllflags = $(lflags) -entry:_DllMainCRTStartup$
linkdebug = $(ldebug)
conlflags = $(lflags) -subsystem:console,$(APPVE
TNS_ADMIN = C:\instantclient-basic-win
guilflags = $(lflags) -subsystem:windows,$(APPVE
savlflags = $(lflags) -subsystem:windows,$(APPVE
cc = cl
QTJAVA = C:\Program Files\Java\jre1.6.0_06\lib
olelibsmt = ole32.lib uuid.lib oleaut32.lib $(guilibsmt)
conlibsmt = $(libcmt) $(baselibs)
hc = hcrtf -xn
WINDIR = C:\WINDOWS
APPVER = 4.0
VS80COMNTOOLS = C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\
VS71COMNTOOLS = C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools
\
guilibsmt = $(libcmt) $(winlibs)
psxlflags = $(lflags) -subsystem:posix -entry:__PosixProcessStart
rc = rc
libcdll = msvcrt.lib oldnames.lib
LIB = C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\
;C:\Program Files\SQLXML 4.0\bin\
USERDNSDOMAIN = asg.com
CLIENTNAME = Console
rcflags = /r
PROMPT = $P$G
CPP = cl
FOR = fl32
CPU = i386
$(PROCESSOR_ARCHITECTURE)
olelibs = ole32.lib uuid.lib oleaut32.lib $(guilibs)
conlibs = $(libc) $(baselibs)
ccommon = -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo
FP_NO_HOST_CHECK = NO
guilibs = $(libc) $(winlibs)
TMP = C:\DOCUME~1\rupeshv\LOCALS
CXX = cl
ORACLE_SID = 10.30.0.95
USERDOMAIN = ASG
winlibs = $(baselibs) user32.lib gdi32.lib comdlg32.lib winspool.lib
APPDATA = C:\Documents and Settings\rupeshv\Applicati
ole2libsmt = $(olelibsmt)
optlibs =
MAKEDIR = E:\hook\hk\E2EHook\hook
INFERENCE RULES:
.asm.exe:
commands: $(AS) $(AFLAGS) $*.asm
.asm.obj:
commands: $(AS) $(AFLAGS) /c $*.asm
.c.exe:
commands: $(CC) $(CFLAGS) $<
.c.obj:
commands: $(CC) $(CFLAGS) /c $<
.cpp.exe:
commands: $(CPP) $(CPPFLAGS) $<
.cpp.obj:
commands: $(CPP) $(CPPFLAGS) /c $<
.cxx.exe:
commands: $(CXX) $(CXXFLAGS) $<
.cxx.obj:
commands: $(CXX) $(CXXFLAGS) /c $<
.bas.obj:
commands: $(BC) $(BFLAGS) $*.bas;
.cbl.exe:
commands: $(COBOL) $(COBFLAGS) $*.cbl, $*.exe;
.cbl.obj:
commands: $(COBOL) $(COBFLAGS) $*.cbl;
.f.exe:
commands: $(FOR) $(FFLAGS) $*.f
.f.obj:
commands: $(FOR) /c $(FFLAGS) $*.f
.f90.exe:
commands: $(FOR) $(FFLAGS) $*.f90
.f90.obj:
commands: $(FOR) /c $(FFLAGS) $*.f90
.for.exe:
commands: $(FOR) $(FFLAGS) $*.for
.for.obj:
commands: $(FOR) /c $(FFLAGS) $*.for
.pas.exe:
commands: $(PASCAL) $(PFLAGS) $*.pas
.pas.obj:
commands: $(PASCAL) /c $(PFLAGS) $*.pas
.rc.res:
commands: $(RC) $(RFLAGS) /r $*
.SUFFIXES: .exe .obj .asm .c .cpp .cxx .bas .cbl .f .f90 .for .pas .res .rc
TARGETS:
hooks32.res:
flags:
dependents: hooks32.rc hooks32.h
commands: $(rc) $(rcvars) -r hooks32.rc
hooks32.exp:
flags:
dependents: hooks32.obj hooks32.def
commands: $(implib) -machine:$(CPU) -def:hooks32.def
hooks32.obj ptdlgs.obj ptprint.obj ptfind.obj hooksdll.obj -out:ho
oks32.lib
all:
flags:
dependents: hooks32.exe hooksdll.dll
commands:
hooksdll.lib:
flags:
dependents: hooksdll.obj hooksdll.def hooksdll.rbj
commands: $(implib) -machine:$(CPU) -def:hooksdll.def
hooksdll.obj -out:hooksdll.lib
hooksdll.obj:
flags:
dependents: hooksdll.c hooks32.h
commands: $(cc) $(cflags) $(cvars) $(cdebug) hooksdll.c
hooksdll.dll:
flags:
dependents: hooksdll.obj hooksdll.def hooksdll.lib
commands: $(link) $(linkdebug) MSVCRT.LIB /NODEFAULTLIB -base
:0x1C000000 -dll -entry:LibMain$(DLLENTRY) -out:hooksdll.d
ll hooksdll.exp hooksdll.obj hooksdll.rbj $(guilibsdll)
hooksdll.rbj:
flags:
dependents: hooksdll.res
commands: cvtres -$(CPU) hooksdll.res -o hooksdll.rbj
hooks32.obj:
flags:
dependents: hooks32.c hooks32.h
commands: $(cc) $(cflags) $(cvars) $(cdebug) hooks32.c
hooks32.rbj:
flags:
dependents: hooks32.res
commands: cvtres -$(CPU) hooks32.res -o hooks32.rbj
hooksdll.res:
flags:
dependents: hooksdll.rc
commands: $(rc) $(rcvars) -r hooksdll.rc
hooks32.exe:
flags:
dependents: hooks32.obj hooksdll.dll hooksdll.lib hooks32.rbj
hooks32.def
commands: $(link) $(linkdebug) MSVCRT.LIB $(guiflags) -out:hook
s32.exe /ENTRY:mainCRTStartup hooks32.obj hooksdll.lib hooks32.rbj $(guilibs)
cl -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -
D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DWIN32 -D_WIN32 -Z7 -O
d hooks32.c
NMAKE : fatal error U1077: 'cl' : return code '0xc0000135'
Stop.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
After running the batch file i did run CL. The error i receive states
"This application has failed to start because mspdb60.dll was bit found.Re-installing the application might fix the problem "
A search in visual studio folder did not have mspdb60.dll...
"This application has failed to start because mspdb60.dll was bit found.Re-installing the application might fix the problem "
A search in visual studio folder did not have mspdb60.dll...
ASKER
Thanks Danrollin.. Looks like i was missing a dll in my installed directory . Placing the dll "mspdb60.dll" within lib resolved the issue.
ASKER
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -
D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DWIN32 -D_WIN32 -Z7 -O
d hooks32.c
'cl' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'cl' : return code '0x1'
Stop.
Looks like it cant find cl.exe again. DO i need to start copying cl.exe to the src directory again?