问题编译Eliza chatbot C ++错误LNK2019 [英] Problem compiling Eliza chatbot C++ error LNK2019

查看:212
本文介绍了问题编译Eliza chatbot C ++错误LNK2019的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我只想说我不是一个C ++程序员,我从来不打算是 - 我是一个SQL,javascript和PHP开发人员。对于Univeristy的一个模块,我必须改变一个chatbot项目来演示AI和NLP。

firstly I would just like to say that I am not a C++ programmer and I never intend to be - I am an SQL, javascript and PHP developer. For a module at Univeristy I have to alter a chatbot project to demonstrate AI and NLP.

我自己的愤怒(在交付一个需要背景知识的作业主题事项,我从来没有在我的3年在这里)是不相关的,我试图潜水和学习一点C ++,因为计算机逻辑,我希望,跨语言的通用。我的观点是,我不知道这一点,我为此道歉。我真的搜索这个错误(有很多),但我不明白一些解决方案。

While my own exasperation (at being handed an assignment that requires a background knowledge in a subject matter that I have never been taight in my 3 years here) is irrelevant, I am attempting to dive in and learn a bit of C++, as computer logic is, I hope, universal across languages. My point is that I am not knowledgeable in this, and I apologise for that. I have honestly searched for this error (there is a lot) but I don't understand some of the solutions.

无论如何,我得到这些错误时,我编译:

Anyway, I am getting these errors when I compile:

1>Eliza.obj : error LNK2019: unresolved external symbol "public: void __thiscall Lex::load(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?load@Lex@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main

1>Eliza.obj : error LNK2019: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Lex::partOfSpeech(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?partOfSpeech@Lex@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V23@@Z) referenced in function "void __cdecl showLexValues(class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > &)" (?showLexValues@@YAXAAV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Z)

1>Eliza.obj : error LNK2019: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Lex::meaning(void)" (?meaning@Lex@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function "void __cdecl showLexValues(class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > &)" (?showLexValues@@YAXAAV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Z)

1>Eliza.obj : error LNK2019: unresolved external symbol "public: bool __thiscall Lex::contains(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (?contains@Lex@@QAE_NAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "void __cdecl showLexValues(class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > &)" (?showLexValues@@YAXAAV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Z)

1>C:\Users\Minky\Documents\chatbot\Eliza4\Debug\elizav4.exe : fatal error LNK1120: 4 unresolved externals

我已经尝试更改子系统,我读 - 这没有工作。我试图寻找我应该链接的东西,但我不知道如何,我有一个新的安装的Visual Studio 2005。

I have tried changing the subsystem, as I read - this did not work. I have tried looking for the things that I am supposed to link, but I don't know how. I have a new installation of Visual Studio 2005.

任何人都可以帮助我吗?我真的想立即开始取得进展
这里是项目文件 http://www.mediafire.com/?3xvnb37449i65x9

Can anyone help me please? I really would like to start making headway on this immediately. Here is the project file http://www.mediafire.com/?3xvnb37449i65x9

这段代码应该直接在框中工作,因为它是你应该开始并随后添加到项目文件。

This code should work straight out the box, so to speak, as it is the project files that you are supposed to start with and subsequently add to.

记住,你认为我的配置有问题吗?是项目文件应该去某个特定的地方,以便VS可以找到和参考图书馆或东西(我在这里抓着稻草)?正如我所说,我发现一个线程谈到子系统,我试图改变,没有快乐

With that in mind, do you think there is a problem with my configuration? Are the project files supposed to go somewhere specific so that VS can find and reference libraries or something (I'm clutching at straws here)? As I said, I had found a thread talking about subsystems, which I tried changing, with no joy

我真的真的需要得到crackin这 - 再次,我想指出我不是想学习C ++,这个项目是一个工具来演示NLP。因此,虽然我认识到,有与人不愿意只是给人们一个答案,我只是试图让这个工作,所以我可以上手。我真的搜查,肯定有很多similiar线程,但我根本都没有字面上的C ++知识,所以它只是完全无助于我。我相信,这是我的配置或东西。

I really really need to get crackin on this - again I want to point out I am not trying to learn C++, this project is a tool to demonstrate NLP. So while I realise that there is a reluctance with people to just give people an answer, I am merely trying to get this working so I can get started. I really have searched and yes there are a lot of similiar threads, but I have literally no knowledge of C++ at all, so it is just completely unhelpful to me. I am certain that this is a problem with my configuration or something

任何帮助,将不胜感激。

Any help would be appreciated

推荐答案

看看这个: http://msdn.microsoft.com/en-us/library/799kze2z%28v=vs.80%29.aspx

应该可以回答你的问题。此外,如果您使用任何代码库,那么这些代码没有正确链接。

That should probably answer your question. Also, if you are using any code libraries then these are not being linked to correctly.

这篇关于问题编译Eliza chatbot C ++错误LNK2019的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆