for(PathList::const_iterator i=files.begin(); i!=files.end(); ++i)
{
string basename=(*i)[-1];
- string ext=Path::splitext(basename).ext;
+ string ext=splitext(basename).ext;
if((ext==".cpp" || ext==".c") && build_exe)
{
SourceFile *src=new SourceFile(builder, this, i->str());
PathList files;
for(PathList::const_iterator i=sources.begin(); i!=sources.end(); ++i)
{
- struct stat st;
- stat(*i, st);
+ struct stat st=stat(*i);
if(S_ISDIR(st.st_mode))
{
list<string> sfiles=list_files(*i);