[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Electric and Qt libraries
From: |
Dmitry Nadezhin |
Subject: |
Re: Electric and Qt libraries |
Date: |
Fri, 22 Mar 2002 00:01:16 +0300 |
Hello Lutz,
Thank you for your report.
This bug can be fixed by changing the routine
"graphqt.cpp:filesindirectory()" :
/*
* Routine to search for all of the files/directories in directory "directory"
and
* return them in the array of strings "filelist". Returns the number of files
found.
*/
INTBIG filesindirectory(char *directory, char ***filelist)
{
INTBIG len;
QDir dir( QString::fromLocal8Bit (directory) );
if (gra_fileliststringarray == 0)
{
gra_fileliststringarray = newstringarray(db_cluster);
if (gra_fileliststringarray == 0) return 0;
}
clearstrings(gra_fileliststringarray);
for(int i=0; i < dir.count(); i++)
{
if (dir[i] == "." || dir[i] == "..") continue;
addtostringarray( gra_fileliststringarray,
EApplication::localizeFilePath (
dir[i], FALSE ) );
}
*filelist = getstringarray(gra_fileliststringarray, &len);
return(len);
}
-Dmitry
-----Original Message-----
From: "Lutz Morawietz, Student" <address@hidden>
To: address@hidden
Date: Thu, 21 Mar 2002 12:40:21 +0100
Subject: Electric and Qt libraries
>
> Hello,
> I'm trying to compile electric-6.05 with the qt-libraries, but somehowit
> doesn't work.
> I always get the error message:
>
> c++ -DUSEQT -I/usr/local/qt-2.3.1/include -Isrc/include
> -DANYDEPTH -c src/graph/graphqt.cpp -o src/graph/graphqt.o
> src/graph/graphqt.cpp: In function `long int filesindirectory(char *,
> char ***)':
> src/graph/graphqt.cpp:3378: implicit declaration of function `int
> readdir_r(...)'
> make: *** [src/graph/graphqt.o] Error 1
>
> If I compile without Qt the same function call of readdir_r in the file
> graphunixx11.c works fine.
> Can you help me with this?
>
> Best regards
> Lutz Morawietz
>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Electric and Qt libraries,
Dmitry Nadezhin <=