【问题标题】:Unresolved Error未解决的错误
【发布时间】:2011-07-24 06:05:45
【问题描述】:

当我编译它给出错误信息时:

usimage.cpp
Generating Code...
Linking...
   Creating library .\Output/gci2.lib and object .\Output/gci2.exp
cam_simulator.obj : error LNK2001: unresolved external symbol _ffclos
cam_simulator.obj : error LNK2001: unresolved external symbol _ffgpxv
cam_simulator.obj : error LNK2001: unresolved external symbol _ffthdu
cam_simulator.obj : error LNK2001: unresolved external symbol _ffgisz
cam_simulator.obj : error LNK2001: unresolved external symbol _ffgidm
cam_simulator.obj : error LNK2001: unresolved external symbol _ffghdt
cam_simulator.obj : error LNK2001: unresolved external symbol _ffdkopn
guide_routines.obj : error LNK2001: unresolved external symbol "float __cdecl CalcSlope(class DoubleArray)" (?CalcSlope@@YAMVDoubleArray@@@Z)
.\Release/gci2.dll : fatal error LNK1120: 8 unresolved externals
Error executing link.exe.
PixCel.exe - 9 error(s), 3 warning(s)

我将项目设置更改为多线程并喜欢 Vfw32.lib 但没有更改...

我正在使用 vc++ 6.0 和 xp 平台...

【问题讨论】:

  • 不是在编译时,而是在*链接时。

标签: c++ linker-errors visual-c++-6 unresolved-external


【解决方案1】:

您在链接时缺少库,请尝试将 fitio 库(我相信您正在尝试使用)添加到您的链接路径。

【讨论】:

  • 是的,我想与fitsio库链接,我正在将它与程序链接,但为什么它没有链接,我无法理解,有什么解决方案,你能建议我吗???
  • 这里发生了什么,它完成了对所有文件的检查,所以我认为它在编译过程中没有发现错误。然后当它与库“链接...创建库.\Output/gci2.lib 和对象.\Output/gci2.exp cam_simulator.obj :错误LNK2001:未解析的外部符号_ffclos cam_simulator.obj:错误LNK2001:未解析的外部符号_ffgpxv“它产生错误,我已在我的项目链接器属性中正确链接..是否需要任何其他设置或链接?
猜你喜欢
  • 1970-01-01
  • 2014-08-23
  • 2012-03-16
  • 2013-02-21
  • 2015-06-04
  • 2016-05-22
  • 1970-01-01
  • 2015-12-07
相关资源
最近更新 更多