诸位,帮忙看看怎么回事?

raining_peidx 2007-08-17 02:53:59
LIBCD.lib(dbgheap.obj) : error LNK2005: _malloc already defined in LIBC.lib(malloc.obj)
LIBCD.lib(dbgheap.obj) : error LNK2005: __nh_malloc already defined in LIBC.lib(malloc.obj)
LIBCD.lib(dbgheap.obj) : error LNK2005: __heap_alloc already defined in LIBC.lib(malloc.obj)
LIBCD.lib(dbgheap.obj) : error LNK2005: _calloc already defined in LIBC.lib(calloc.obj)
LIBCD.lib(dbgheap.obj) : error LNK2005: _realloc already defined in LIBC.lib(realloc.obj)
LIBCD.lib(dbgheap.obj) : error LNK2005: _free already defined in LIBC.lib(free.obj)
LIBCD.lib(dbgheap.obj) : error LNK2005: __msize already defined in LIBC.lib(msize.obj)
LIBCD.lib(sbheap.obj) : error LNK2005: __get_sbh_threshold already defined in LIBC.lib(sbheap.obj)
LIBCD.lib(sbheap.obj) : error LNK2005: __set_sbh_threshold already defined in LIBC.lib(sbheap.obj)
LIBCD.lib(sbheap.obj) : error LNK2005: ___sbh_heap_init already defined in LIBC.lib(sbheap.obj)
LIBCD.lib(sbheap.obj) : error LNK2005: ___sbh_find_block already defined in LIBC.lib(sbheap.obj)
LIBCD.lib(sbheap.obj) : error LNK2005: ___sbh_free_block already defined in LIBC.lib(sbheap.obj)
LIBCD.lib(sbheap.obj) : error LNK2005: ___sbh_alloc_block already defined in LIBC.lib(sbheap.obj)
LIBCD.lib(sbheap.obj) : error LNK2005: ___sbh_alloc_new_region already defined in LIBC.lib(sbheap.obj)
LIBCD.lib(sbheap.obj) : error LNK2005: ___sbh_alloc_new_group already defined in LIBC.lib(sbheap.obj)
LIBCD.lib(sbheap.obj) : error LNK2005: ___sbh_resize_block already defined in LIBC.lib(sbheap.obj)
LIBCD.lib(sbheap.obj) : error LNK2005: ___sbh_heapmin already defined in LIBC.lib(sbheap.obj)
LIBCD.lib(sbheap.obj) : error LNK2005: ___sbh_heap_check already defined in LIBC.lib(sbheap.obj)
LIBCD.lib(sbheap.obj) : error LNK2005: ___sbh_threshold already defined in LIBC.lib(sbheap.obj)
LIBCD.lib(dbgheap.obj) : warning LNK4006: _malloc already defined in LIBC.lib(malloc.obj); second definition ignored
LIBCD.lib(dbgheap.obj) : warning LNK4006: __nh_malloc already defined in LIBC.lib(malloc.obj); second definition ignored
LIBCD.lib(dbgheap.obj) : warning LNK4006: __heap_alloc already defined in LIBC.lib(malloc.obj); second definition ignored
LIBCD.lib(dbgheap.obj) : warning LNK4006: _calloc already defined in LIBC.lib(calloc.obj); second definition ignored
LIBCD.lib(dbgheap.obj) : warning LNK4006: _realloc already defined in LIBC.lib(realloc.obj); second definition ignored
LIBCD.lib(dbgheap.obj) : warning LNK4006: _free already defined in LIBC.lib(free.obj); second definition ignored
LIBCD.lib(dbgheap.obj) : warning LNK4006: __msize already defined in LIBC.lib(msize.obj); second definition ignored
LIBCD.lib(sbheap.obj) : warning LNK4006: __get_sbh_threshold already defined in LIBC.lib(sbheap.obj); second definition ignored
LIBCD.lib(sbheap.obj) : warning LNK4006: __set_sbh_threshold already defined in LIBC.lib(sbheap.obj); second definition ignored
LIBCD.lib(sbheap.obj) : warning LNK4006: ___sbh_heap_init already defined in LIBC.lib(sbheap.obj); second definition ignored
LIBCD.lib(sbheap.obj) : warning LNK4006: ___sbh_find_block already defined in LIBC.lib(sbheap.obj); second definition ignored
LIBCD.lib(sbheap.obj) : warning LNK4006: ___sbh_free_block already defined in LIBC.lib(sbheap.obj); second definition ignored
LIBCD.lib(sbheap.obj) : warning LNK4006: ___sbh_alloc_block already defined in LIBC.lib(sbheap.obj); second definition ignored
LIBCD.lib(sbheap.obj) : warning LNK4006: ___sbh_alloc_new_region already defined in LIBC.lib(sbheap.obj); second definition ignored
LIBCD.lib(sbheap.obj) : warning LNK4006: ___sbh_alloc_new_group already defined in LIBC.lib(sbheap.obj); second definition ignored
LIBCD.lib(sbheap.obj) : warning LNK4006: ___sbh_resize_block already defined in LIBC.lib(sbheap.obj); second definition ignored
LIBCD.lib(sbheap.obj) : warning LNK4006: ___sbh_heapmin already defined in LIBC.lib(sbheap.obj); second definition ignored
LIBCD.lib(sbheap.obj) : warning LNK4006: ___sbh_heap_check already defined in LIBC.lib(sbheap.obj); second definition ignored
LIBCD.lib(sbheap.obj) : warning LNK4006: ___sbh_threshold already defined in LIBC.lib(sbheap.obj); second definition ignored
...全文
297 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
raining_peidx 2007-08-20
  • 打赏
  • 举报
回复
hoya5121说的是,下次一定注意!
最后问题是这样解决的:在主工程下,setting->link->input,在Ignore libraries下添加libcd.lib,msvcrtd.lib,mfc42d.lib。
共享
星羽 2007-08-17
  • 打赏
  • 举报
回复
setting/Link的Ignore libraries 里把

libc.lib Ignore 看看
SwordMan2001 2007-08-17
  • 打赏
  • 举报
回复
xx
hilary0810 2007-08-17
  • 打赏
  • 举报
回复
同时连接了debug,release库,工程属性
iu_81 2007-08-17
  • 打赏
  • 举报
回复
去掉一个lib
oo 2007-08-17
  • 打赏
  • 举报
回复
工程设置有问题
LIBC.lib和LIBCD.lib里的东东一样的,就是后一个是debug版
gfxiang 2007-08-17
  • 打赏
  • 举报
回复
工程设置有问题
hoya5121 2007-08-17
  • 打赏
  • 举报
回复
也不说你是什么编译器,做什么程序时候出的问题
大嘎应该是你的库目录设置的问题把
bargio_susie 2007-08-17
  • 打赏
  • 举报
回复
_malloc already defined in LIBC.lib(malloc.obj)
。。。。。。。。。。。。。。。。。。。。。。。

貌似下面象_molloc这样的都重名了,换个名字试下。。。

69,368

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧