2011-02-10 83 views
1

首先,我只想说我不是C++程序员,我从不打算成为 - 我是SQL,JavaScript和PHP开发人员。对于Univeristy的一个模块,我必须更改chatbot项目来演示AI和NLP。编译Eliza聊天机器人C++错误的问题LNK2019

尽管我自己的愤怒(被交给需要背景知识的任务,在我这里3年来从来没有这样轻率的主题背景知识)是无关紧要的,但我试图潜入并学习一些C++ ,因为我希望计算机逻辑能够跨语言通用。我的观点是,我不了解这一点,我对此表示歉意。我诚实地寻找这个错误(有很多),但我不明白一些解决方案。

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

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 &)" ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@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> >)" ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@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> > > > &)" ([email protected]@[email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@[email protected]@[email protected]@@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)" ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@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> > > > &)" ([email protected]@[email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@[email protected]@[email protected]@@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> > &)" ([email protected]@@[email protected]?$c[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@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> > > > &)" ([email protected]@[email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected][email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@[email protected]@[email protected]@@Z) 

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

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

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

这段代码应该可以直接使用,可以这么说,因为它是你应该开始并随后添加到的项目文件。

考虑到这一点,你认为我的配置有问题吗?项目文件是否应该放在特定位置,以便VS可以找到并引用库或其他东西(我在这里抓着吸管)?正如我所说,我已经找到了一个线程谈论子系统,我试图改变,没有喜悦

我真的很需要在这方面得到破解 - 我想指出我不想学习C++,这项目是展示NLP的工具。所以,当我意识到人们不愿意给人们一个答案时,我只是试图让这个工作,以便我可以开始。我真的已经搜索过,是的,有很多类似的线程,但我几乎完全不了解C++,所以对我来说这完全没有帮助。我相信,这是我的配置或东西

任何帮助,将不胜感激

回答