I'm trying to create a scsi port driver but I'm having problems with the miniport functions. I'm using DDK 3790 and have created WDM drivers in the past with no problem. I've event directly specified the library files using TARGETLIBS but that makes no difference. If anyone has any ideas I would be very grateful. I've included the last part of the log file preoduced by build

-entry:DriverEntry@8
-out:objchk_w2K_x86\i386\IDEPORT.sys
objchk_w2K_x86\i386\driver.res
objchk_w2K_x86\i386\ideport.obj
E:\WINDDK\3790\lib\w2K\i386\int64.lib
E:\WINDDK\3790\lib\w2K\i386\scsiport.lib
E:\WINDDK\3790\lib\w2K\i386\scsiwmi.lib
E:\WINDDK\3790\lib\w2K\i386\sehupd.lib
/Tmp
ideport.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) unsigned long __stdcall ScsiPortInitialize(void *,void *,struct _HW_INITIALIZATION_DATA *,void *)" (__imp_?ScsiPortInitialize@@YGKPAX0PAU_HW_INITIALIZATION_DATA@@0@Z) referenced in function _DriverEntry@
ideport.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl ScsiDebugPrint(unsigned long,char *,...)" (__imp_?ScsiDebugPrint@@YAXKPADZZ) referenced in function _DriverEntry@
objchk_w2K_x86\i386\IDEPORT.sys : fatal error LNK1120: 2 unresolved external
echo Skip Binplace
Skip Binplace

Stop.

Re: Link error with ScsiDebugPrint & ScsiPortInitialize by David

David
Sun Feb 29 12:43:16 CST 2004

You said 'scsi port driver' and then mention 'miniport functions'. You
have confused me, how can you have one and the other. If you use the
miniport functions you are using Microsoft's SCSI port driver, not
yours.

"Richard Bidgood" <bidgoor@sbu.ac.uk> wrote in message
news:ECAE5B9A-95D1-4D1A-9807-030F878562C4@microsoft.com...
> I'm trying to create a scsi port driver but I'm having problems with
the miniport functions. I'm using DDK 3790 and have created WDM drivers
in the past with no problem. I've event directly specified the library
files using TARGETLIBS but that makes no difference. If anyone has any
ideas I would be very grateful. I've included the last part of the log
file preoduced by build.
>
> -entry:DriverEntry@8
> -out:objchk_w2K_x86\i386\IDEPORT.sys
> objchk_w2K_x86\i386\driver.res
> objchk_w2K_x86\i386\ideport.obj
> E:\WINDDK\3790\lib\w2K\i386\int64.lib
> E:\WINDDK\3790\lib\w2K\i386\scsiport.lib
> E:\WINDDK\3790\lib\w2K\i386\scsiwmi.lib
> E:\WINDDK\3790\lib\w2K\i386\sehupd.lib
> /Tmp
> ideport.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) unsigned long __stdcall ScsiPortInitialize(void
*,void *,struct _HW_INITIALIZATION_DATA *,void *)"
(__imp_?ScsiPortInitialize@@YGKPAX0PAU_HW_INITIALIZATION_DATA@@0@Z)
referenced in function _DriverEntry@8
> ideport.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) void __cdecl ScsiDebugPrint(unsigned long,char
*,...)" (__imp_?ScsiDebugPrint@@YAXKPADZZ) referenced in function
_DriverEntry@8
> objchk_w2K_x86\i386\IDEPORT.sys : fatal error LNK1120: 2 unresolved
externals
> echo Skip Binplace:
> Skip Binplace:
>
> Stop.



Re: Link error with ScsiDebugPrint & ScsiPortInitialize by bidgoor

bidgoor
Tue Mar 02 07:21:09 CST 2004

Sorry to confuse the issue. I'm creating a SCSI Mini Port Driver which uses the ScsiPort Routines, and it's the ScsiPort Routines that was having linking error on.