cvblobs error LNK2005

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

cvblobs error LNK2005

贾舒婷(玮)

hi, all:
    I tried the example at this link( http://opencv.willowgarage.com/wiki/cvBlobsLib#Codeexamples), I got the errors as below, anyone can help please? Thanks a lot!!!!


--------------------Configuration: MyProject - Win32 Debug--------------------
Linking...
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __assert already defined in LIBCD.lib(assert.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fclose already defined in LIBCD.lib(fclose.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fprintf already defined in LIBCD.lib(fprintf.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _realloc already defined in LIBCD.lib(dbgheap.obj)
MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc already defined in LIBCD.lib(dbgheap.obj)
LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/MyProject.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
Creating browse info file...

MyProject.exe - 7 error(s), 1 warning(s)


_________________________________________________________________
新版客服页面提供最新MSN客服资讯,助您轻松解决问题。
http://help.cn.msn.com/Cs.html

[Non-text portions of this message have been removed]

Reply | Threaded
Open this post in threaded view
|

Re: cvblobs error LNK2005

Adam Coirazza
hello, you get linker errors because you need to include some .lib files in
the Additional Dependancies of your individual projects. visit:
http://opencv.willowgarage.com/wiki/VisualC%2B%2B
and do a search (Ctrl+F) for "linker errors"

Cheers

On Wed, Dec 31, 2008 at 6:06 PM, 贾舒婷(玮) <[hidden email]> wrote:

>
> hi, all:
> I tried the example at this link(
> http://opencv.willowgarage.com/wiki/cvBlobsLib#Codeexamples), I got the
> errors as below, anyone can help please? Thanks a lot!!!!
>
> --------------------Configuration: MyProject - Win32
> Debug--------------------
> Linking...
> MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: __assert already defined in
> LIBCD.lib(assert.obj)
> MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fclose already defined in
> LIBCD.lib(fclose.obj)
> MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _fprintf already defined in
> LIBCD.lib(fprintf.obj)
> MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in
> LIBCD.lib(dbgheap.obj)
> MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _realloc already defined in
> LIBCD.lib(dbgheap.obj)
> MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc already defined in
> LIBCD.lib(dbgheap.obj)
> LINK : warning LNK4098: defaultlib "MSVCRTD" conflicts with use of other
> libs; use /NODEFAULTLIB:library
> Debug/MyProject.exe : fatal error LNK1169: one or more multiply defined
> symbols found
> Error executing link.exe.
> Creating browse info file...
>
> MyProject.exe - 7 error(s), 1 warning(s)
>
> __________________________________________________________
> 新版客服页面提供最新MSN客服资讯,助您轻松解决问题。
> http://help.cn.msn.com/Cs.html
>
> [Non-text portions of this message have been removed]
>
>  
>


[Non-text portions of this message have been removed]