nel-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nel] Compilation sous linux et hash_map


From: Jean-Michel ARMAND
Subject: [Nel] Compilation sous linux et hash_map
Date: Tue, 16 Mar 2004 14:24:43 -0000

Bonjour, 

il y a un problème avec les hash_map sous linux gcc 3.2.2

pour que cela compile il faut rajouter le flag : -Wno-deprecated
dans les CXXFLAGS des makefiles se trouvant dans : 
 src/misc/config-file
 src/misc

il faut ensuite remplacer tout les std::hash_map 
par hash_map dans les fichiers : 
 include/nel/misc/stream.h
 include/nel/misc/class_registry.h

si cela ne fonctionne toujours pas changer le #include <hash_map>
contenu dans : 
 include/nel/misc/stream.h
 include/nel/misc/class_registry.h
et 
src/misc/stdmisc.h 

par un lien direct vers votre fichier hash_map.h 
pour moi : 
#include        "/usr/include/c++/3.2.2/backward/hash_set.h"

cela devrait mieux marcher. 

En anglais maintenant :) 


It's a issue with hash_map and gcc 3.2.2 and Linux 

for compile insert the flag : -Wno-deprecated
in the CXXFLAG in 
src/misc/config-file/Makefile 
and 
src/misc/Makefile

Replace all std::hash_map by hash_map in files : 
include/nel/misc/stream.h
include/nel/misc/class_registry.h

if it's still not compile 
replace  #include <hash_map> by a #include point directly to your file
hash_map.h 
At my box it is : #include      "/usr/include/c++/3.2.2/backward/hash_set.h"

A++ 

JM 

-- 
Jean-Michel ARMAND <address@hidden>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]