1

まず最初に、私は C++ プログラマーではなく、そのつもりもありません。私は SQL、JavaScript、および PHP の開発者です。大学のモジュールでは、チャットボット プロジェクトを変更して、AI と NLP のデモを行う必要があります。

私自身の憤り (ここでの 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 &)" (?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 を新しくインストールしました。

誰でも私を助けてもらえますか?私は本当にこれについてすぐに前進を始めたいと思っています。ここにプロジェクトファイルがありますhttp://www.mediafire.com/?3xvnb37449i65x9

このコードは、最初からプロジェクト ファイルに追加する必要があるため、いわばすぐに機能するはずです。

それを念頭に置いて、私の構成に問題があると思いますか? VSがライブラリなどを見つけて参照できるように、プロジェクトファイルは特定の場所に移動することになっていますか(私はここでストローを握りしめています)? 私が言ったように、私は喜んで変更しようとしたサブシステムについて話しているスレッドを見つけました

私は本当にこれを理解する必要があります - 繰り返しますが、私は C++ を学ぼうとしているわけではありません。このプロジェクトは NLP を実証するためのツールです。ですから、人々が単に答えを出すことに消極的であることは理解していますが、私は単にこれを機能させようとしているだけなので、始めることができます. 私は本当に検索しましたが、同様のスレッドがたくさんありますが、文字通り C++ の知識がまったくないので、まったく役に立ちません。これは私の設定か何かの問題であると確信しています

どんな助けでもいただければ幸いです

4

1 に答える 1

0

これを見てください:http://msdn.microsoft.com/en-us/library/799kze2z%28v=vs.80%29.aspx

それはおそらくあなたの質問に答えるはずです。また、コード ライブラリを使用している場合、これらは正しくリンクされていません。

于 2011-02-10T19:46:07.090 に答える