Hello,
I am trying to get build.exe to compile and link a user mode dll, and am
having trouble. I have the dll compiling via a .DSP file, but one of our
requirements is to build from the command line using build. I got it to
where it can compile, but during link, it can not find user mode libraries.
I have included the build output and sources file. Can anyone spot (or
know) what could be wrong?
thanks,
rob
******************************** build output
C:\dev\Release2.1\DLL>build
BUILD: Object root set to: ==> objchk
BUILD: /i switch ignored
BUILD: Compile and Link for i386
BUILD: Loading c:\w2kddk\build.dat…
BUILD: Computing Include file dependencies:
BUILD: Examining c:\dev\release2.1\dll directory for files to compile.
c:\dev\release2.1\dll - 11 source files (12,033 lines)
BUILD: Compiling c:\dev\release2.1\dll directory
Compiling - res1.rc for i386
Compiling - file1.c for i386
Compiling - file2.c for i386
Compiling - file3.c for i386
Compiling - file4.c for i386
Compiling - file5.c for i386
Compiling - file6.c for i386
Compiling - file7.c for i386
Compiling - file8.c for i386
Compiling - file9.c for i386
Compiling - file10.c for i386
Building Library - bin\i386\mydll.lib for i386
BUILD: Linking c:\dev\release2.1\dll directory
Linking Executable - bin\i386\mydll.dll for i386
file1.obj() : error LNK2001: unresolved external symbol
__imp__GetTempPathW@8
file4.obj() : error LNK2001: unresolved external symbol
__imp__GetTempPathW@8
libc.lib(close.obj) : error LNK2001: unresolved external symbol
__imp__GetLastError@0
libc.lib(read.obj) : error LNK2001: unresolved external symbol
__imp__GetLastError@0
libc.lib(write.obj) : error LNK2001: unresolved external symbol
__imp__GetLastError@0
libc.lib(wcstombs.obj) : error LNK2001: unresolved external symbol
__imp__GetLastError@0
libc.lib(commit.obj) : error LNK2001: unresolved external symbol
__imp__GetLastError@0
libc.lib(osfinfo.obj) : error LNK2001: unresolved external symbol
__imp__GetLastError@0
file9.obj() : error LNK2001: unresolved external symbol
__imp__GetLastError@0
file10.obj() : error LNK2001: unresolved external symbol
__imp__GetLastError@0
libc.lib(mkdir.obj) : error LNK2001: unresolved external symbol
__imp__GetLastError@0
******************************** sources.
TARGETNAME=mydll
TARGETPATH=bin
TARGETTYPE=DYNLINK
INCLUDES=c:\w2kddk\src\filesys\inc;c:\w2kddk\inc;c:\w2kddk\inc\ddk;…\includ
e;c:\sdk\include;c:\vc\include
LINKER_FLAGS=-MAP:mydll.map -driver
SOURCES=file1.c file2.c file3.C file4.c file5.C file6.C file7.C file8.c file9.c file10.C res1.rc
MSC_WARNING_LEVEL=-W3
UMTYPE=console
DLLBASE=0x31200000
BROWSER_INFO=1
BROWSERFILE=$(TARGETNAME).bsc -n
********************************
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com