Skip to main content

Thread: was not declared in this scope


how fix problem?

code:
src/graphics/gstage.cp: in member function 'void gstage::setlights(tgraphicslightlist*)': src/graphics/gstage.cp:78: error: 'sprintf' not declared in scope src/graphics/gstage.cp: in member function 'void gstage::addlight(glight*)': src/graphics/gstage.cp:266: error: 'sprintf' not declared in scope scons: *** [.bld/polyworld/graphics/gstage.o] error 1 scons: building terminated because of errors. make: *** [all] error 2

hello. did ever working? here had polyworld working.

fix error, go every file complains (in case src/graphics/gstage.cp) , add following top:
code:
#include <stdio.h>
complain l5 or 6 files.

after fixed, complain char * conversion error. go src/tools/pwtxt/main.cpp , on line 180 change
code:
char *name = rindex( path, '/' );
to
code:
const char *name = rindex( path, '/' );


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] was not declared in this scope


Ubuntu

Comments