News:

Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

Subversion 6916 /utils/dr_rdpng.h needs #include <string.h> to compile.

Started by jspaces, November 22, 2013, 08:57:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jspaces

The latest subversion 6913 fails to compile on /utils/dr_rdpng.cc with the following error. After inserting "#include <string.h>"  in dr_rdpng.h, the compile completes successfully.
../utils/dr_rdpng.cc: In function 'bool load_block(unsigned char**, unsigned int*, unsigned int*, const char*, int)':
../utils/dr_rdpng.cc:136:86: error: 'strerror' was not declared in this scope
   dbg->warning( "while loading PNG", "%s: %s", fname, strerror(errno) );
                                                                                      ^
../uncommon.mk:46: recipe for target '../build/default/utils/dr_rdpng-makeobj.o' failed
make: *** [../build/default/utils/dr_rdpng-makeobj.o] Error 1

Dwachs

Parsley, sage, rosemary, and maggikraut.