build together with a static lib?

Hello, there,

I have a static math library built from a Visual C++, and am trying to link
into my NDIS driver, however there is an error saying “can’t find the
function entry” I am sure that everything in general is correct, the right
header file has been included, the right lib has been put into the sources

So anyone who had experience can inform me whether it is ok to link a
userspace static library with my driver? Thank you so much…

BR,
Chiang

I don’t believe you can link in a user mode lib.

-----Original Message-----
From: Qiang Zhang [mailto:xxxxx@ecutel.com]
Sent: Tuesday, February 29, 2000 3:50 PM
To: NT Developers Interest List
Cc: xxxxx@ecutel.com
Subject: [ntdev] build together with a static lib?

Hello, there,

I have a static math library built from a Visual C++, and am trying to link
into my NDIS driver, however there is an error saying “can’t find the
function entry” I am sure that everything in general is correct, the right
header file has been included, the right lib has been put into the sources

So anyone who had experience can inform me whether it is ok to link a
userspace static library with my driver? Thank you so much…

BR,
Chiang


You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

I am probably dicing terms here, but there is no such thing as a “user mode”
static library. It is likely that your static library requires functions in
other libraries that are not available a kernel mode link, or, may be
assuming some external function calls are DLL calls, or some other “user
mode” nonsense. The Win32 header files are full of such problems. It is also
possible that the particular library you are trying to use was compiled or
linked with flags that are not proper for kernel mode software, but if you
have the source, you could fix this problem by using the proper flags.

I have on many occations created static libraries for link with kernel mode
software. The key is to make sure your library does not rely on external
features that are only available for user mode applications.

-----Original Message-----
From: Nemiroff, Daniel [mailto:xxxxx@intel.com]
Sent: Tuesday, February 29, 2000 7:56 PM
To: NT Developers Interest List
Subject: [ntdev] RE: build together with a static lib?

I don’t believe you can link in a user mode lib.

-----Original Message-----
From: Qiang Zhang [mailto:xxxxx@ecutel.com]
Sent: Tuesday, February 29, 2000 3:50 PM
To: NT Developers Interest List
Cc: xxxxx@ecutel.com
Subject: [ntdev] build together with a static lib?

Hello, there,

I have a static math library built from a Visual C++, and am trying to link
into my NDIS driver, however there is an error saying “can’t find the
function entry” I am sure that everything in general is correct, the right
header file has been included, the right lib has been put into the sources

So anyone who had experience can inform me whether it is ok to link a
userspace static library with my driver? Thank you so much…

BR,
Chiang


You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)


You are currently subscribed to ntdev as: xxxxx@moore-solutions.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

> So anyone who had experience can inform me whether it is ok to link a

userspace static library with my driver? Thank you so much…

Usually this is not OK - the library can contain references to C runtime
stuff
not supported in kernel mode.
Also remember that floating point is not supported in kernel mode.

Max

FP in KM isn’t supported in NT4, but it is supported (as are MMX
instructions therefore) in Win2K.

Regards,

Paul Bunn, UltraBac.Com, 425-644-6000
Microsoft MVP - WindowsNT
http://www.ultrabac.com

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Wednesday, March 01, 2000 7:38 AM
To: NT Developers Interest List
Cc: xxxxx@ecutel.com
Subject: [ntdev] Re: build together with a static lib?

[snip]
Also remember that floating point is not supported in kernel mode.