I use gecko-sdk and Qt4 in Visual Studio 2003 .
I succeed in linking my project with IDE(Visual Studio 2003), but failed window console.
the infomation is :
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
link /LIBPATH:"c:\QT\4.3.1\lib" /NOLOGO /INCREMENTAL:NO /SUBSYSTEM:CONSO
LE /NODEFAULTLIB:libc /OUT:..\..\src\C++\bin\ObjectBuilder.exe @C:\DOCUME~1\ADMI
NI~1\LOCALS~1\Temp\nm43.tmp
xpcomglue.lib(nsGREDirServiceProvider.obj) : error LNK2019: 无法解析的外部符号 _
_imp__RegCloseKey@4 ,该符号在函数 _GRE_GetGREPath 中被引用
xpcomglue.lib(nsGREDirServiceProvider.obj) : error LNK2019: 无法解析的外部符号 _
_imp__RegQueryValueExA@24 ,该符号在函数 _GRE_GetGREPath 中被引用
xpcomglue.lib(nsGREDirServiceProvider.obj) : error LNK2019: 无法解析的外部符号 _
_imp__RegOpenKeyExA@20 ,该符号在函数 _GRE_GetGREPath 中被引用
..\..\src\C++\bin\ObjectBuilder.exe : fatal error LNK1120: 3 个无法解析的外部命
令
NMAKE : fatal error U1077: “link†: 返回代码“0x460â€
Stop.
but i can succeed in IDE., just some warnings. as follow:
---------------------- 完成 ---------------------INK : warning LNK4068: 未指定 /MACHINE;默认设置为 X86
LINK : warning LNK4098: 默认库“MSVCRTâ€与其他库的使用冲突;使用 /NODEFAULTLIB:library
xpcomglue.lib(nsCOMPtr.obj) : warning LNK4099: 未发现 PDB“xpcomglue.pdbâ€有“D:\CTP-6800\code\src\C++/lib/xpcomglue.libâ€或者在“d:\Ctp-6800\code\src\C++\bin\xpcomglue.pdbâ€中;正在链接对象 ,如同没有调试信息一样
xpcomglue.lib(nsDebug.obj) : warning LNK4099: 未发现 PDB“xpcomglue.pdbâ€有“D:\CTP-6800\code\src\C++/lib/xpcomglue.libâ€或者在“d:\Ctp-6800\code\src\C++\bin\xpcomglue.pdbâ€中;正在链接对象 ,如同没有调试信息一样
xpcomglue.lib(nsMemory.obj) : warning LNK4099: 未发现 PDB“xpcomglue.pdbâ€有“D:\CTP-6800\code\src\C++/lib/xpcomglue.libâ€或者在“d:\Ctp-6800\code\src\C++\bin\xpcomglue.pdbâ€中;正在链接对象 ,如同没有调试信息一样
xpcomglue.lib(nsXPCOMGlue.obj) : warning LNK4099: 未发现 PDB“xpcomglue.pdbâ€有“D:\CTP-6800\code\src\C++/lib/xpcomglue.libâ€或者在“d:\Ctp-6800\code\src\C++\bin\xpcomglue.pdbâ€中;正在链接对象 ,如同没有调试信息一样
xpcomglue.lib(nsGREDirServiceProvider.obj) : warning LNK4099: 未发现 PDB“xpcomglue.pdbâ€有“D:\CTP-6800\code\src\C++/lib/xpcomglue.libâ€或者在“d:\Ctp-6800\code\src\C++\bin\xpcomglue.pdbâ€中;正在链接对象 ,如同没有调试信息一样
生成日志保存在“file://d:\Ctp-6800\code\unitTest\ObjectBuilder\objs\\BuildLog.ht mâ€中
ObjectBuilder - 0 错误,7 警告
生成: 1 已成功, 0 已失败, 0 已跳过
thanks
Bookmarks