cppunit
Posted: 2010年4月18日(日) 10:35
こんばんは。
前シューティングゲームを作るといってた光冠です。
この授業の一つにテストをしっかりやるという事がありまして、
とりあえずcppunitをVC++2008EEでやろうと思ったのですがどうも上手くいきません
とりあえず下のサイトを参考にしていたのですが
http://www.atmarkit.co.jp/fdotnet/cppte ... 02_01.html
サンプルで試してみたところ同じようなエラーがでます。
1>リンクしています...
1>CounterTest.obj : error LNK2019: 未解決の外部シンボル "public: __thiscall Counter::Counter(void)" (??0Counter@@QAE@XZ) が関数 "public: virtual void __thiscall CounterTest::setUp(void)" (?setUp@CounterTest@@UAEXXZ) で参照されました。
1>CounterTest.obj : error LNK2019: 未解決の外部シンボル "public: int __thiscall Counter::get(void)const " (?get@Counter@@QBEHXZ) が関数 "protected: void __thiscall CounterTest::test_init(void)" (?test_init@CounterTest@@IAEXXZ) で参照されました。
1>CounterTest.obj : error LNK2019: 未解決の外部シンボル "public: void __thiscall Counter::incr(void)" (?incr@Counter@@QAEXXZ) が関数 "protected: void __thiscall CounterTest::test_incr(void)" (?test_incr@CounterTest@@IAEXXZ) で参照されました。
1>CounterTest.obj : error LNK2019: 未解決の外部シンボル "public: void __thiscall Counter::clear(void)" (?clear@Counter@@QAEXXZ) が関数 "protected: void __thiscall CounterTest::test_clear(void)" (?test_clear@CounterTest@@IAEXXZ) で参照されました。
1>C:\/*省略*/CounterSolution\Debug\CounterTest.exe : fatal error LNK1120: 外部参照 4 が未解決です。
1>ビルドログは "file://c:CounterSolution\CounterTest\Debug\BuildLog.htm" に保存されました。
1>CounterTest - エラー 5、警告 0
========== ビルド: 0 正常終了、1 失敗、0 更新不要、0 スキップ ==========
なにが問題なのでしょう?
前シューティングゲームを作るといってた光冠です。
この授業の一つにテストをしっかりやるという事がありまして、
とりあえずcppunitをVC++2008EEでやろうと思ったのですがどうも上手くいきません
とりあえず下のサイトを参考にしていたのですが
http://www.atmarkit.co.jp/fdotnet/cppte ... 02_01.html
サンプルで試してみたところ同じようなエラーがでます。
1>リンクしています...
1>CounterTest.obj : error LNK2019: 未解決の外部シンボル "public: __thiscall Counter::Counter(void)" (??0Counter@@QAE@XZ) が関数 "public: virtual void __thiscall CounterTest::setUp(void)" (?setUp@CounterTest@@UAEXXZ) で参照されました。
1>CounterTest.obj : error LNK2019: 未解決の外部シンボル "public: int __thiscall Counter::get(void)const " (?get@Counter@@QBEHXZ) が関数 "protected: void __thiscall CounterTest::test_init(void)" (?test_init@CounterTest@@IAEXXZ) で参照されました。
1>CounterTest.obj : error LNK2019: 未解決の外部シンボル "public: void __thiscall Counter::incr(void)" (?incr@Counter@@QAEXXZ) が関数 "protected: void __thiscall CounterTest::test_incr(void)" (?test_incr@CounterTest@@IAEXXZ) で参照されました。
1>CounterTest.obj : error LNK2019: 未解決の外部シンボル "public: void __thiscall Counter::clear(void)" (?clear@Counter@@QAEXXZ) が関数 "protected: void __thiscall CounterTest::test_clear(void)" (?test_clear@CounterTest@@IAEXXZ) で参照されました。
1>C:\/*省略*/CounterSolution\Debug\CounterTest.exe : fatal error LNK1120: 外部参照 4 が未解決です。
1>ビルドログは "file://c:CounterSolution\CounterTest\Debug\BuildLog.htm" に保存されました。
1>CounterTest - エラー 5、警告 0
========== ビルド: 0 正常終了、1 失敗、0 更新不要、0 スキップ ==========
なにが問題なのでしょう?