RE,
Donc je viens de faire make, après avoir fait ce que tu avais dis, et voilà ce que ça me dit :
lowdrain@lowdrain:~/Téléchargements/ninjamstaross/ninjam/cursesclient$ make
g++ -O2 -malign-double -s -c -o ../../WDL/jnetlib/asyncdns.o ../../WDL/jnetlib/asyncdns.cpp
g++ -O2 -malign-double -s -c -o ../../WDL/jnetlib/connection.o ../../WDL/jnetlib/connection.cpp
../../WDL/jnetlib/connection.cpp: In constructor ‘JNL_Connection::JNL_Connection(JNL_AsyncDNS*, int, int)’:
../../WDL/jnetlib/connection.cpp:16:14: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../../WDL/jnetlib/connection.cpp: In member function ‘void JNL_Connection::connect(int, sockaddr_in*)’:
../../WDL/jnetlib/connection.cpp:58:16: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../../WDL/jnetlib/connection.cpp: In member function ‘void JNL_Connection::connect(char*, int)’:
../../WDL/jnetlib/connection.cpp:70:16: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../../WDL/jnetlib/connection.cpp:81:18: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../../WDL/jnetlib/connection.cpp: In member function ‘void JNL_Connection::run(int, int, int*, int*)’:
../../WDL/jnetlib/connection.cpp:133:22: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../../WDL/jnetlib/connection.cpp:144:20: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../../WDL/jnetlib/connection.cpp:162:22: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../../WDL/jnetlib/connection.cpp:171:22: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
g++ -O2 -malign-double -s -c -o ../../WDL/jnetlib/listen.o ../../WDL/jnetlib/listen.cpp
g++ -O2 -malign-double -s -c -o ../../WDL/jnetlib/util.o ../../WDL/jnetlib/util.cpp
g++ -O2 -malign-double -s -c -o ../../WDL/rng.o ../../WDL/rng.cpp
g++ -O2 -malign-double -s -c -o ../../WDL/sha.o ../../WDL/sha.cpp
g++ -O2 -malign-double -s -c -o ../mpb.o ../mpb.cpp
In file included from ../../WDL/jnetlib/jnetlib.h:42:0,
from ../netmsg.h:33,
from ../mpb.h:32,
from ../mpb.cpp:35:
../../WDL/jnetlib/httpget.h: In member function ‘int JNL_HTTPGet::content_length()’:
../../WDL/jnetlib/httpget.h:73:62: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../mpb.cpp: In member function ‘Net_Message* mpb_chat_message::build()’:
../mpb.cpp:883:17: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
g++ -O2 -malign-double -s -c -o ../netmsg.o ../netmsg.cpp
In file included from ../../WDL/jnetlib/jnetlib.h:42:0,
from ../netmsg.h:33,
from ../netmsg.cpp:36:
../../WDL/jnetlib/httpget.h: In member function ‘int JNL_HTTPGet::content_length()’:
../../WDL/jnetlib/httpget.h:73:62: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
g++ -O2 -malign-double -s -c -o ../njclient.o ../njclient.cpp
In file included from ../njclient.h:69:0,
from ../njclient.cpp:29:
../../WDL/string.h: In member function ‘char* WDL_String::Get()’:
../../WDL/string.h:138:12: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
In file included from ../../WDL/jnetlib/jnetlib.h:42:0,
from ../njclient.h:71,
from ../njclient.cpp:29:
../../WDL/jnetlib/httpget.h: In member function ‘int JNL_HTTPGet::content_length()’:
../../WDL/jnetlib/httpget.h:73:62: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../njclient.cpp: In member function ‘void BufferQueue::Clear()’:
../njclient.cpp:169:19: erreur: cast from ‘WDL_HeapBuf*’ to ‘int’ loses precision [-fpermissive]
../njclient.cpp:169:38: erreur: cast from ‘WDL_HeapBuf*’ to ‘int’ loses precision [-fpermissive]
../njclient.cpp: In destructor ‘NJClient::~NJClient()’:
../njclient.cpp:460:21: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../njclient.cpp: In member function ‘int NJClient::Run()’:
../njclient.cpp:816:29: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../njclient.cpp:817:31: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../njclient.cpp:1014:23: erreur: cast from ‘WDL_HeapBuf*’ to ‘int’ loses precision [-fpermissive]
../njclient.cpp:1020:16: erreur: cast from ‘WDL_HeapBuf*’ to ‘int’ loses precision [-fpermissive]
../njclient.cpp:1046:61: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../njclient.cpp: In member function ‘void NJClient::mixInChannel(bool, float, float, DecodeState*, float**, int, int, int, int, double)’:
../njclient.cpp:1550:132: attention : format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat]
../njclient.cpp: In member function ‘void NJClient::on_new_interval()’:
../njclient.cpp:1566:73: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../njclient.cpp:1614:91: attention : deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
../njclient.cpp: In member function ‘void BufferQueue::DisposeBlock(WDL_HeapBuf*)’:
../njclient.cpp:2058:17: erreur: cast from ‘WDL_HeapBuf*’ to ‘int’ loses precision [-fpermissive]
make: *** [../njclient.o] Erreur 1
Donc visiblement il y a le même genre d'erreur qu'avec l'autre fichier que j'avais utilisé.
J'attends de voir si tu as des suggestions, ensuite j'essaierai avec le fichier de pilami