Problem with compile latest xbt !
../misc/bvalue.cpp: In member function 'int Cbvalue::read(char*) const':
../misc/bvalue.cpp:326: error: 'sprintf' was not declared in this scope
../misc/socket.cpp: In static member function 'static std::string Csocket::error2a(int)':
../misc/socket.cpp:201: error: 'sprintf' was not declared in this scope
i dont have idea what couse this i need help !
Linux distro gentoo latest all dependencies are installed and all of tham are stable !
Boost are 1.41 latest stable for gentoo !
Olaf van der Spek
Is that the latest svn revision?
Try to add #include <cstdio> somewhere at the top of those two .cpp files.
yap its latest svn !
Yesterday i recompile alll things for xbt and same !
Follow guide from here
svn co https://xbtt.svn.sourceforge.net/svnroot/xbtt/trunk/xbt/misc xbt/misc
svn co https://xbtt.svn.sourceforge.net/svnroot/xbtt/trunk/xbt/Tracker xbt/Tracker
cp xbt_tracker.conf.default xbt_tracker.conf
I dont found this #include <cstdio> or something similiar i look into files and doesnt found that i add on my own this line and i also get error ! Cant compile xbt !
Olaf van der Spek
What does g++ -v say? 4.4 works fine for me.
Just for information, I compiled the last version this morning with Ubuntu Server 10.04 TLS x64, no problem.
Both files were fixedin July, so you do not have the latest SVN revision!
I get few sec ago and this my revision via svn ! And still have problem ! I try to remove whole xbt folder and files and i will try again !
Checked out revision 2068.
Ok i solve this problem !
Its been perrmission problem that file not upgraded becouse somehow permission was 0644 for xbt to all files ! I set chmod 0777 start again and files was upgraded fine !
Also i run ./make.sh and now is ok !
Thanks olaf and & edtech !