How to find out name of DDK library

How to find out name of DDK library that contains a function I want to use?

For example:
errors LNK2019: unresolved external symbol __ftol2_sse

What library I have to link?

Mike.

MIKE:

There may be better ways, but just try a text search of the DDK library
files.

>> xxxxx@hotmail.com 2005-11-22 04:09 >>>
How to find out name of DDK library that contains a function I want to
use?

For example:
errors LNK2019: unresolved external symbol __ftol2_sse

What library I have to link?

Mike.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@evitechnology.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Hi,

I can just give you a hint that your linkage problem
is a not appropriate casting you make in your code -
try to find out where you do it…

Alon

“Martin O’Brien” wrote in
message news:xxxxx@ntdev…
> MIKE:
>
> There may be better ways, but just try a text search
of the DDK library
> files.
>
>
> >>> xxxxx@hotmail.com 2005-11-22 04:09 >>>
> How to find out name of DDK library that contains a
function I want to
> use?
>
> For example:
> errors LNK2019: unresolved external symbol
ftol2_sse
>
> What library I have to link?
>
> Mike.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
xxxxx@evitechnology.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com
>
>

________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

It must be a binary search in a directory according to bytes patterns. Do
you know any utility that do it?

“Martin O’Brien” wrote in message
news:xxxxx@ntdev…
> MIKE:
>
> There may be better ways, but just try a text search of the DDK library
> files.
>
>
> >>> xxxxx@hotmail.com 2005-11-22 04:09 >>>
> How to find out name of DDK library that contains a function I want to
> use?
>
> For example:
> errors LNK2019: unresolved external symbol __ftol2_sse
>
> What library I have to link?
>
> Mike.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@evitechnology.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>

Michael Feigin wrote:

It must be a binary search in a directory according to bytes patterns. Do
you know any utility that do it?

The terribly sophisticated “findstr” tool will do it. It is present in
only one library (ntstrsafe.lib). However, this means that you are
using floating point in your driver. Are you saving and restoring the
floating point environment when you use it?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Why does it have to be binary? If it really must, any editor that has a
regular expression search capability for files will do the trick. I use
SlickEdit, and there is a trial version available for download at
www.slickedit.com. There are many other utilities, such as any
available version of egrep/grep/fgrep (such as Cygwin).

If you can do a normal text search, you can just any text editor or
even the Search funtion of Explorer. Using Explorer, you would just
right click on the library folder and select “Search”, enter *.LIB for
the file name pattern (the first edit box), and (something like)
“__ftol2_sse” (or whatever you are looking for) in the “Containing Text”
edit box.

MM

>> xxxxx@hotmail.com 2005-11-22 13:01 >>>
It must be a binary search in a directory according to bytes patterns.
Do
you know any utility that do it?

“Martin O’Brien” wrote in message
news:xxxxx@ntdev…
> MIKE:
>
> There may be better ways, but just try a text search of the DDK
library
> files.
>
>
> >>> xxxxx@hotmail.com 2005-11-22 04:09 >>>
> How to find out name of DDK library that contains a function I want
to
> use?
>
> For example:
> errors LNK2019: unresolved external symbol __ftol2_sse
>
> What library I have to link?
>
> Mike.
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@evitechnology.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com

>
>


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@evitechnology.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

> www.slickedit.com. There are many other utilities, such as any

available version of egrep/grep/fgrep (such as Cygwin).

I have ported GNU grep to Win32 myself, without using this nasty toolset.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

Why grep binaries? This is more reliable:

[D:\WINDDK\2600\lib\wxp\i386] link /dump /exports *.lib >exports.txt

[D:\WINDDK\2600\lib\wxp\i386] findstr /i SomeSymbol exports.txt

Or, if you want:

[D:\WINDDK\2600\lib\wxp\i386] for %x in (*.lib) do link /dump /exports %x

%x.exports.txt

[D:\WINDDK\2600\lib\wxp\i386] findstr /i SomeSymbol *.exports.txt

msvcrt.lib.exports.txt: __ftol
msvcrt4.lib.exports.txt: __ftol
msvcrt4d.lib.exports.txt: __ftol
msvcrtd.lib.exports.txt: __ftol
ntdll.lib.exports.txt: __ftol

That way, you can use the filename as a hint, so you don’t have to page-up
through the massive exports.txt (about 7.2M on WINDDK 2600).

This also works on *.dll, of course.

– arlie

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Wednesday, November 23, 2005 3:16 PM
To: Windows System Software Devs Interest List
Subject: Re: Re:[ntdev] How to find out name of DDK library

www.slickedit.com. There are many other utilities, such as any
available version of egrep/grep/fgrep (such as Cygwin).

I have ported GNU grep to Win32 myself, without using this nasty toolset.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@stonestreetone.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

I can’t believe searching files for a string is discussed in this list :wink:

Best regards,

Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]


From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Maxim S. Shatskih[SMTP:xxxxx@storagecraft.com]
Reply To: Windows System Software Devs Interest List
Sent: Wednesday, November 23, 2005 9:15 PM
To: Windows System Software Devs Interest List
Subject: Re: Re:[ntdev] How to find out name of DDK library

> www.slickedit.com. There are many other utilities, such as any
> available version of egrep/grep/fgrep (such as Cygwin).

I have ported GNU grep to Win32 myself, without using this nasty toolset.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@upek.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

> I can’t believe searching files for a string is discussed in this list :wink:

Perhaps it could be done using the system dma controller invoked from
another processor using a hand-built IPI hook.

Loren

> ----------

From: xxxxx@lists.osr.com[SMTP:xxxxx@lists.osr.com] on behalf of Loren Wilton[SMTP:xxxxx@earthlink.net]
Reply To: Windows System Software Devs Interest List
Sent: Thursday, November 24, 2005 2:31 AM
To: Windows System Software Devs Interest List
Subject: Re: Re:[ntdev] How to find out name of DDK library

> I can’t believe searching files for a string is discussed in this list :wink:

Perhaps it could be done using the system dma controller invoked from
another processor using a hand-built IPI hook.

I certainly meant this problem is too complicated for NTDEV and should be discussed in NTFSD instead.

Best regards,

Michal Vodicka
UPEK, Inc.
[xxxxx@upek.com, http://www.upek.com]