I have written and compiled php extension, but when i try to run php i get this error PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525+lfs/mylib.so' - /usr/lib/php5/20100525+lfs/mylib.so: undefined symbol: _ZNK4Data10strtolowerEPKc in Unknown on line 0 data.h
class Data
{
public:
// ...
char *strtolower ( const char * const ) const;
};
data.cpp
inline char *Data::strtolower(const char *const str) const
{
char c, *b = estrdup(str), *s = b;
while(*s != '\0' && (c = *s))
{
*s++ = (c >= 0x41 && c <= 0x5a) ? c + 0x20 : c;
}
return b;
}
What is this error and why the code compiled? And the main question is how to fix it?