Mona/アプリ質問所/HashMap


Mona/アプリ質問所

HashMapについて

g++ -c -o pciinfo.o -nostdlib -Wall -fno-builtin -O3 -DMONA -DDEBUG_BUILD
-DHOST_CYGWIN -fno-exceptions -fno-rtti -I../../../include pciinfo.cpp
In file included from pciinfo.h:19,
                 from pciinfo.cpp:17:
../../../include/sys/HashMap.h:33: error: syntax error before `<' token
../../../include/sys/HashMap.h:37: error: destructors must be member functions
../../../include/sys/HashMap.h:37: error: virtual outside class declaration
../../../include/sys/HashMap.h:37: error: `void HashMap()' redeclared as 
   different kind of symbol
../../../include/sys/HashMap.h:33: error: previous declaration of `
   template<class T> class HashMap'
../../../include/sys/HashMap.h:33: error: previous non-function declaration `
   template<class T> class HashMap'
../../../include/sys/HashMap.h:37: error: conflicts with function declaration `
   void HashMap()'
../../../include/sys/HashMap.h:39: error: syntax error before `public'
../../../include/sys/HashMap.h:41: error: syntax error before `*' token
../../../include/sys/HashMap.h:42: error: syntax error before `*' token
../../../include/sys/HashMap.h:43: error: syntax error before `*' token
../../../include/sys/HashMap.h:44: error: non-member function `int size()' 
   cannot have `const' method qualifier
../../../include/sys/HashMap.h:46: error: syntax error before `private'
../../../include/sys/HashMap.h:50: error: syntax error before `private'
../../../include/sys/HashMap.h:52: error: `T' was not declared in this scope
../../../include/sys/HashMap.h:52: error: template argument 1 is invalid
../../../include/sys/HashMap.h:52: error: ISO C++ forbids declaration of `tree_
   ' with no type
../../../include/sys/HashMap.h:53: error: syntax error before `}' token
../../../include/sys/HashMap.h:55: error: invalid use of undefined type `class 
   HashMap<T>'
../../../include/sys/HashMap.h:33: error: declaration of `class HashMap<T>'
../../../include/sys/HashMap.h:55: error: template definition of non-template `
   HashMap<T>::HashMap(int)'
../../../include/sys/HashMap.h:60: error: invalid use of undefined type `class 
   HashMap<T>'
../../../include/sys/HashMap.h:33: error: declaration of `class HashMap<T>'
../../../include/sys/HashMap.h:60: error: template definition of non-template `
   HashMap<T>::~HashMap()'
../../../include/sys/HashMap.h:64: error: invalid use of undefined type `class 
   HashMap<T>'
../../../include/sys/HashMap.h:33: error: declaration of `class HashMap<T>'
../../../include/sys/HashMap.h:64: error: template definition of non-template `
   int HashMap<T>::hash(char*)'
../../../include/sys/HashMap.h:76: error: invalid use of undefined type `class 
   HashMap<T>'
../../../include/sys/HashMap.h:33: error: declaration of `class HashMap<T>'
../../../include/sys/HashMap.h:76: error: template definition of non-template `
   int HashMap<T>::size() const'
../../../include/sys/HashMap.h:80: error: invalid use of undefined type `class 
   HashMap<T>'
../../../include/sys/HashMap.h:33: error: declaration of `class HashMap<T>'
../../../include/sys/HashMap.h:80: error: template definition of non-template `
   bool HashMap<T>::containsKey(char*)'
../../../include/sys/HashMap.h:84: error: invalid use of undefined type `class 
   HashMap<T>'
../../../include/sys/HashMap.h:33: error: declaration of `class HashMap<T>'
../../../include/sys/HashMap.h:84: error: template definition of non-template `
   T HashMap<T>::get(char*)'
../../../include/sys/HashMap.h:88: error: invalid use of undefined type `class 
   HashMap<T>'
../../../include/sys/HashMap.h:33: error: declaration of `class HashMap<T>'
../../../include/sys/HashMap.h:88: error: template definition of non-template `
   T HashMap<T>::put(char*, T)'
../../../include/sys/HashMap.h:92: error: invalid use of undefined type `class 
   HashMap<T>'
../../../include/sys/HashMap.h:33: error: declaration of `class HashMap<T>'
../../../include/sys/HashMap.h:92: error: template definition of non-template `
   T HashMap<T>::remove(char*)'
make: *** [pciinfo.o] Error 1
上記の3行とも有効な場合 aaaVal = 88 : bbbVal = 88
3だけコメントアウト     aaaVal = 55 : bbbVal = 55
2,3行目をコメントアウト aaaVal = 10 : bbbVal = 10
という感じです。

コメントはありません。 コメント/Mona/アプリ質問所/HashMap?

お名前:

MENU

now: 1

リンク


最新の20件
2018-09-03 2018-05-09 2017-09-29 2017-01-10 2016-12-11 2016-10-04 2016-08-14 2016-06-05 2016-05-29 2016-04-15 2015-12-28 2013-02-25 2013-02-21 2013-02-20 2013-02-12 2013-02-11 2013-02-10
最新の20件
2010-02-01 2010-01-31 2010-01-30 2010-01-29 2010-01-16

Counter: 4214, today: 1, yesterday: 1

リロード   新規 編集 凍結 差分 添付 複製 改名   トップ 一覧 検索 最終更新 バックアップ   ヘルプ   最終更新のRSS

Last-modified: 2008-03-28 (金) 15:47:55 (3831d);  Modified by mona
PukiWiki 1.4.6 Copyright © 2001-2005 PukiWiki Developers Team. License is GPL.
Based on "PukiWiki" 1.3 by yu-ji
Powered by PHP 5.2.17
HTML convert time to 0.034 sec.