[wdmaudiodev] Link errors in build using native math functions

  • From: Dibyendu Nandy <dnandy@xxxxxxxxx>
  • To: WDMAUDIODEV <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Wed, 21 Apr 2010 21:18:45 -0700 (PDT)

Hello All,

I am building a library with some math functions that are to be integrated with 
a codec driver targeting Windows XP. My build environment is DDK 7600.13685.1

The library is built separately and then linked with other libraries to get the 
audio driver. I am getting the following errors in the link stage. Does anyone 
have an idea why there should be link conflicts, why should native math library 
functions have conflicts with libcntpr.lib and ntstrsafe.lib. I tried an 
experiment using IPP calls to replace all the calls to sqrt(), but I still get 
the same errors.

Would appreciate your responses and any fix for this issue.

-- LINK ERRORS --
1>...\libcntpr.lib(sqrt.obj) : error LNK2005: __CIsqrt already defined in 
ntoskrnl.lib(ntoskrnl.exe)
1>...\libcntpr.lib(sin.obj) : error LNK2005: __CIsin already defined in 
ntoskrnl.lib(ntoskrnl.exe)
1>...\libcntpr.lib(cos.obj) : error LNK2005: __CIcos already defined in 
ntoskrnl.lib(ntoskrnl.exe)
1>...\ntstrsafe.lib(ftol2.obj) : error LNK2005: __ftol2 already defined in 
libcntpr.lib(ftol2.obj)

Thanks and Best Regards 
db
dnandy@xxxxxxxxx

Other related posts: