I am trying to use a library (compiled by me) compiled using VS2K5, as a
static lib, uses MFC as a shared DLL, doesn’t use ATL, unicode compilant, no
common language runtime support, uses precompiled headers.
Now in my project, which happens to be a rendering plugin for the printer
(the bitmap sample’s modificaton), I try to use this lib. The sources file
look like…
To build version with debug output, add -D_DEBUG to C_DEFINES line below
C_DEFINES=$(C_DEFINES) -DKERNEL_MODE -D_UNICODE -DUNICODE -DOEMCOM
-DUSERMODE_DRIVER
INCLUDES=…;$(SDK_INC_PATH)\MFC42
SOURCES= dllentry.cpp \
enable.cpp \
intrface.cpp \
ddihook.cpp \
debug.cpp \
devmode.cpp \
bitmap.rc
TARGETLIBS= $(TARGETLIBS) \
$(SDK_LIB_PATH)\uuid.lib \
$(SDK_LIB_PATH)\kernel32.lib \
$(SDK_LIB_PATH)\winspool.lib \
$(SDK_LIB_PATH)\user32.lib \
$(SDK_LIB_PATH)\gdi32.lib \
$(DDK_LIB_PATH)\umpdddi.lib \
$(SDK_LIB_PATH)\ole32.lib \
$(SDK_LIB_PATH)\advapi32.lib \
*$(SDK_LIB_PATH)\cximage.lib *
check the last line, it has the new library added to it.
I get the linker error, DONT know how to build cximage.lib.
D:\PRNMON\RENPLUGIN>bld
BUILD: Adding /Y to COPYCMD so xcopy ops won’t hang.
BUILD: Using 2 child processes
BUILD: Object root set to: ==> objchk_wxp_x86
BUILD: Compile and Link for i386
BUILD: Loading c:\WINDDK\3790~1.183\build.dat…
BUILD: Computing Include file dependencies:
BUILD: Examining d:\prnmon\renplugin directory for files to compile.
d:\prnmon\renplugin - 8 source files (5,032 lines)
BUILD: Saving c:\WINDDK\3790~1.183\build.dat…
BUILD: Compiling (NoSync) d:\prnmon\renplugin directory
1>Precompiling - precomp.h for i386
1>Compiling - bitmap.rc for i386
1>Compiling - dllentry.cpp for i386
1>Compiling - enable.cpp for i386
1>Compiling - intrface.cpp for i386
1>Compiling - ddihook.cpp for i386
1>Compiling - debug.cpp for i386
1>Compiling - devmode.cpp for i386
1>Compiling - generating code… for i386
BUILD: Compiling d:\prnmon\renplugin directory
100>Building Library - d:\prnmon\i386\bitmap.lib for i386
BUILD: Linking d:\prnmon\renplugin directory
1>errors in directory d:\prnmon\renplugin
1>NMAKE : fatal error U1073: don’t know how to make
‘c:\WINDDK\3790~1.183\lib\wx
p\i386\cximage.lib’
BUILD: nmake.exe /nologo BUILDMSG=Stop. -i LINKONLY=1 NOPASS0=1 NTTEST=
UMTEST=
MAKEDLL=1 386=1 failed - rc = 2
BUILD: Done
9 files compiled - 1 Error - 1006 LPS
1 library built
D:\PRNMON\RENPLUGIN>
I cant understand how this is to be solved!!! I have already built the
library (compiled and linked) before I use this DDK build. Still what is the
problem?
amitr0
–
- amitr0