VC6.0+sp4使用ACE5.4静态链接库,mfc程序,链接时出错Linking...
msvcrt.lib(MSVCRT.dll) : error LNK2005: __errno already defined in libcmt.lib(dosmap.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _memmove already defined in libcmt.lib(memmove.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _wcscat already defined in libcmt.lib(wcscat.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strchr already defined in libcmt.lib(strchr.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _wcscpy already defined in libcmt.lib(wcscat.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strcspn already defined in libcmt.lib(strcspn.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _wcslen already defined in libcmt.lib(wcslen.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strncmp already defined in libcmt.lib(strncmp.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in libcmt.lib(strncpy.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _wcsncpy already defined in libcmt.lib(wcsncpy.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strpbrk already defined in libcmt.lib(strpbrk.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strrchr already defined in libcmt.lib(strrchr.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strspn already defined in libcmt.lib(strspn.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strstr already defined in libcmt.lib(strstr.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _fclose already defined in libcmt.lib(fclose.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __close already defined in libcmt.lib(close.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __open_osfhandle already defined in libcmt.lib(osfinfo.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _fflush already defined in libcmt.lib(fflush.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _vsprintf already defined in libcmt.lib(vsprintf.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __exit already defined in libcmt.lib(crt0dat.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _abort already defined in libcmt.lib(abort.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _atoi already defined in libcmt.lib(atox.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _getenv already defined in libcmt.lib(getenv.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __itoa already defined in libcmt.lib(xtoa.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strtol already defined in libcmt.lib(strtol.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strtoul already defined in libcmt.lib(strtol.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _calloc already defined in libcmt.lib(calloc.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _free already defined in libcmt.lib(free.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _malloc already defined in libcmt.lib(malloc.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _realloc already defined in libcmt.lib(realloc.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __isatty already defined in libcmt.lib(isatty.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __beginthreadex already defined in libcmt.lib(threadex.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __endthreadex already defined in libcmt.lib(threadex.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _tolower already defined in libcmt.lib(tolower.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __stricmp already defined in libcmt.lib(stricmp.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __strnicmp already defined in libcmt.lib(strnicmp.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _signal already defined in libcmt.lib(winsig.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _gmtime already defined in libcmt.lib(gmtime.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _localtime already defined in libcmt.lib(localtim.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strftime already defined in libcmt.lib(strftime.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _time already defined in libcmt.lib(time.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __tzset already defined in libcmt.lib(tzset.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _mktime already defined in libcmt.lib(mktime.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _exit already defined in libcmt.lib(crt0dat.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __strdup already defined in libcmt.lib(strdup.obj)
LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
Release/win_test.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
忽略libcmt.lib,出现Linking...
nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc
nafxcw.lib(filelist.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcw.lib(timecore.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcw.lib(apphelp.obj) : error LNK2001: unresolved external symbol __mbctype
Release/win_test.exe : fatal error LNK1120: 3 unresolved externals搞定给100分!!!
msvcrt.lib(MSVCRT.dll) : error LNK2005: __errno already defined in libcmt.lib(dosmap.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _memmove already defined in libcmt.lib(memmove.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _wcscat already defined in libcmt.lib(wcscat.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strchr already defined in libcmt.lib(strchr.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _wcscpy already defined in libcmt.lib(wcscat.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strcspn already defined in libcmt.lib(strcspn.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _wcslen already defined in libcmt.lib(wcslen.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strncmp already defined in libcmt.lib(strncmp.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in libcmt.lib(strncpy.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _wcsncpy already defined in libcmt.lib(wcsncpy.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strpbrk already defined in libcmt.lib(strpbrk.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strrchr already defined in libcmt.lib(strrchr.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strspn already defined in libcmt.lib(strspn.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strstr already defined in libcmt.lib(strstr.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _fclose already defined in libcmt.lib(fclose.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __close already defined in libcmt.lib(close.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __open_osfhandle already defined in libcmt.lib(osfinfo.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _fflush already defined in libcmt.lib(fflush.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _vsprintf already defined in libcmt.lib(vsprintf.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __exit already defined in libcmt.lib(crt0dat.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _abort already defined in libcmt.lib(abort.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _atoi already defined in libcmt.lib(atox.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _getenv already defined in libcmt.lib(getenv.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __itoa already defined in libcmt.lib(xtoa.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strtol already defined in libcmt.lib(strtol.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strtoul already defined in libcmt.lib(strtol.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _calloc already defined in libcmt.lib(calloc.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _free already defined in libcmt.lib(free.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _malloc already defined in libcmt.lib(malloc.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _realloc already defined in libcmt.lib(realloc.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __isatty already defined in libcmt.lib(isatty.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __beginthreadex already defined in libcmt.lib(threadex.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __endthreadex already defined in libcmt.lib(threadex.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _tolower already defined in libcmt.lib(tolower.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __stricmp already defined in libcmt.lib(stricmp.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __strnicmp already defined in libcmt.lib(strnicmp.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _signal already defined in libcmt.lib(winsig.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _gmtime already defined in libcmt.lib(gmtime.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _localtime already defined in libcmt.lib(localtim.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strftime already defined in libcmt.lib(strftime.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _time already defined in libcmt.lib(time.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __tzset already defined in libcmt.lib(tzset.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _mktime already defined in libcmt.lib(mktime.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _exit already defined in libcmt.lib(crt0dat.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: __strdup already defined in libcmt.lib(strdup.obj)
LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
Release/win_test.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
忽略libcmt.lib,出现Linking...
nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc
nafxcw.lib(filelist.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcw.lib(timecore.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcw.lib(apphelp.obj) : error LNK2001: unresolved external symbol __mbctype
Release/win_test.exe : fatal error LNK1120: 3 unresolved externals搞定给100分!!!
解决方案 »
- 实现拖动窗口时,窗口变成半透明
- 如何向ATL设计的接口函数传递HWND句柄?
- 在atl中使用struct以及union
- 请教一个关于文本框的问题
- 在VC里用ADO 操作SQLSERVER2000,如何使用 分布事务?就30分了,不够加贴!
- 关于安装的制作!
- Socket中用Send发送数据,要发送一个结构体,但是Send发送的类型只有const char,怎么办
- VC的嵌入汇编中如何调用外部的函数,如类的成员函数updatedata()之类
- 求心跳包思路和源代码,最好是使用boost asio的,微软封装的SOCKET也可以
- 内存数组分配与指针分配的问题
- 请问,在我的程序里对远程数据库利用ODBC连接,在程序里如何使不出现数据登录框,在Crecordset类里如何实现。
- 呵呵,有个不好意思问的问题。
你可以试试再重新编译一次ACE
------------------------
ACE static编译没有出错,config.h已指定使用mfc
-----------------
to xubin_sh(徐彬) ( ) 信誉:100 已指定_MT选项!!我再看看……
我在安装ACE环境后,编译系统文件时:
我用VC6。0编译AbstractBase.cpp时出错了,
error C2491: 'release' : definition of dllimport function not allowed
error C2491: 'is_nil' : definition of dllimport function not allowed
请问是什么问题?
只需把路径一改就可以编译了,
要是有人想帮我测试一下的话,email:[email protected]
我已把makefile拷到这里了。有好心人帮我测试就再好不过了。
email:[email protected]
nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc
nafxcw.lib(filelist.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcw.lib(timecore.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcw.lib(apphelp.obj) : error LNK2001: unresolved external symbol __mbctype连接还有了几个函数"未决的外问语法"
Creating library dllvc\acedll.lib and object dllvc\acedll.exp
ace_Capabilities.obj : error LNK2001: unresolved external symbol "public: int __thiscall ACE_Equal_To<class ACE_String_Base<char> >::operator()(class ACE_String_Base<char> const &,class ACE_String_Base<char> const &)const " (??R?$ACE_Equal_To@V?$ACE_String_Base@D@@@@QBEHABV?$ACE_String_Base@D@@0@Z)
ace_Capabilities.obj : error LNK2001: unresolved external symbol "public: unsigned long __thiscall ACE_Hash<class ACE_String_Base<char> >::operator()(class ACE_String_Base<char> const &)const " (??R?$ACE_Hash@V?$ACE_String_Base@D@@@@QBEKABV?$ACE_String_Base@D@@@Z)
nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc
nafxcw.lib(filelist.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcw.lib(timecore.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcw.lib(apphelp.obj) : error LNK2001: unresolved external symbol __mbctype
dllvc\acedll.dll : fatal error LNK1120: 5 unresolved externals