Il y a 4 minutes. # [France]
Bonjour,
J'arrive pas à compiler un programme que j'ai telecharger, c'est le programme de ccirc:
http://www.eecg.toronto.edu/~jayar/s...Cgen/Cgen.html
je travaille sur debian et j'ai gcc 4.1.2
quand je compile j'ai cette erreur :
gcc -c -I. -Wall -pedantic -o circuit.o circuit.cpp
symbol_table.h:54: error: ‘hash’ is not a template
symbol_table.h:55: error: explicit specialization of non-template ‘hash’
symbol_table.h: In member function ‘size_t hash:erator()(const std::string&) const’:
symbol_table.h:59: error: ‘hash’ is not a template
symbol_table.h: At global scope:
symbol_table.h:74: error: expected initializer before ‘<’ token
symbol_table.h:75: error: expected initializer before ‘<’ token
symbol_table.h:76: error: expected initializer before ‘<’ token
symbol_table.h:78: error: ‘PORT_HASH_TABLE’ has not been declared
symbol_table.h:78: error: expected initializer before ‘PORT_HASH_TABLE_ITER’
symbol_table.h:79: error: ‘NODE_HASH_TABLE’ has not been declared
symbol_table.h:79: error: expected initializer before ‘NODE_HASH_TABLE_ITER’
symbol_table.h:80: error: ‘EDGE_HASH_TABLE’ has not been declared
symbol_table.h:80: error: expected initializer before ‘EDGE_HASH_TABLE_ITER’
symbol_table.h:114: error: ‘PORT_HASH_TABLE’ does not name a type
symbol_table.h:115: error: ‘EDGE_HASH_TABLE’ does not name a type
symbol_table.h:116: error: ‘NODE_HASH_TABLE’ does not name a type
graph_medic.h:119: error: multiple types in one declaration
make: *** [circuit.o] Error 1
vous pouvez m'aider SVP ?
merci
ps : voila le ficher symbol_table.h
symbol_table.txt
-----