Page 1 of 1

compile File.cpp issue

Posted: Fri Jan 30, 2009 6:15 am
by thechildren
I'm getting this error:

physfs/File.cpp: In member function ‘virtual bool love_physfs::File::write(const char*, int)’:
physfs/File.cpp:112: error: ‘strlen’ was not declared in this scope
make[2]: *** [physfs/File.o] Error 1

Re: compile File.cpp issue

Posted: Fri Jan 30, 2009 6:50 am
by bartbes
This particular error has been seen more and it actually means that you have to add an include in the file

Code: Select all

#include <string>
EDIT: I should start reading titles :P