When I build driver with XP DDK , 2k DDK, it’s ok.
But there are errors when I use WDK build.
errors LNK2019: unresolved external symbol __ftol2_sse
What library I have to link?
Sincerely, Mike
When I build driver with XP DDK , 2k DDK, it’s ok.
But there are errors when I use WDK build.
errors LNK2019: unresolved external symbol __ftol2_sse
What library I have to link?
Sincerely, Mike
Hi,
This is unrelated to your question, but if the linker is looking for this
then you’re probably doing floating point in the kernel. I’ll highly suggest
moving away from that unless it is absolutely, positively, 100% necessary (I
have no idea what you’re doing so it might actually be necessary but I
wouldn’t feel good about myself unless I mentioned it…Also make sure
you’re making the appropriate calls to save/restore the floating point
state) But, I digress…
I ran into this same problem in a user mode app. I fixed it by explicitly
calling out the runtime lib that I wanted by adding a USE_LIBCMT directive
to my sources. Try adding USE_LIBCNTPR=1 to your SOURCES and see if it helps
(ftol2_sse is exported by libcntpr.lib on the kernel side).
-scott
–
Scott Noone
Software Engineer
OSR Open Systems Resources, Inc.
http://www.osronline.com
“Michael Feigin” wrote in message news:xxxxx@ntdev…
> When I build driver with XP DDK , 2k DDK, it’s ok.
> But there are errors when I use WDK build.
>
> errors LNK2019: unresolved external symbol __ftol2_sse
>
> What library I have to link?
>
>
> Sincerely, Mike
>
> xxxxx@hotmail.com
>
>
>