简体   繁体   English

VC ++ 6链接器错误

[英]VC++ 6 Linker Errors

Basically, what's happening is this: I have a VC6 workspace (contains 3 projects total), and after NOT being able to succesfully port it into VS2010, I installed XP on a virtual machine (Win 7 on host machine), and installed VS6 on the devbox. 基本上,发生的事情是这样的:我有一个VC6工作区(总共包含3个项目),在无法成功将其移植到VS2010之后,我在虚拟机上安装了XP(主机上为Win 7),并在VS6上安装了devbox。

From there, I was able to get past compilation errors, and land headfirst into a whole slew of linker errors... 从那里,我能够解决过去的编译错误,并率先陷入大量的链接器错误中……

and I have no idea what's wrong. 我也不知道怎么了 If anyone could help me with this it would be tremendously appreciated! 如果有人可以帮助我,将不胜感激!

(an excert from the build log, there's 41 linker errors total...) (来自构建日志的专家,共有41个链接器错误...)

>Linking...
MainFrm.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall ReportMenuBuilder::~ReportMenuBuilder(void)" (??1ReportMenuBuilder@@UAE@XZ)
MainFrm.obj : error LNK2001: unresolved external symbol "public: __thiscall ReportMenuBuilder::ReportMenuBuilder(void)" (??0ReportMenuBuilder@@QAE@XZ)
MainFrm.obj : error LNK2001: unresolved external symbol "public: bool __thiscall ReportMenuBuilder::Build(bool)" (?Build@ReportMenuBuilder@@QAE_N_N@Z)
MainFrm.obj : error LNK2001: unresolved external symbol "public: int __thiscall CReportMultiDocTemplate::GetDocumentCount(void)const " (?GetDocumentCount@CReportMultiDocTemplate@@QBEHXZ)
MainFrm.obj : error LNK2001: unresolved external symbol "public: class CString __thiscall ReportMenuBuilder::GetFilespecGivenID(unsigned int)const " (?GetFilespecGivenID@ReportMenuBuilder@@QBE?AVCString@@I@Z)

Only thing I can think of is apparently the projects are having trouble seeing the necessary files from the other projects, but I don't know why. 我唯一能想到的就是这些项目在查看其他项目的必要文件时遇到了麻烦,但是我不知道为什么。

My first guess would be you haven't added the .lib file to the additional imports of the other projects. 我的第一个猜测是您尚未将.lib文件添加到其他项目的其他导入中。 If you have dumpbin the binaries and see if you see the export. 如果您具有dumpbin二进制文件,然后查看是否看到了导出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM