From kde-solaris Tue Jul 23 21:48:35 2002 From: Darrell Esau Date: Tue, 23 Jul 2002 21:48:35 +0000 To: kde-solaris Subject: [kde-solaris] unistd.h conflicts with QT classes? X-MARC-Message: https://marc.info/?l=kde-solaris&m=102746106709783 Hello all, I'm still in the progress of trying to make 3.1 Alpha1 work with Sparc/So= laris=20 8. =20 I've got most of everything compiled, but I'm having a bear of a time on=20 kdenetwork. The problem is that many of the methods defined from QT seem to be confli= cting=20 with functions defined in unistd.h One example is QString::truncate(int) There's a truncate function in unistd.h, and it seems to be interfering w= ith=20 the QT methods. When I try to compile, I get many errors such as: kmmainwin.cpp: In method `void KMMainWin::displayStatusMsg(const QString = &)': kmmainwin.cpp:718: no matching function for call to `QString::truncate64=20 (unsigned int)' Now .. if you go to line 718 in kmmainwin.cpp, you'll find that it's not=20 calling truncate64(), but rather truncate(). I have no idea why g++ is=20 thinking it's trying to call truncate64. =20 Any ideas? On some of these classes, I can comment out the #include .. as = they=20 don't really need it. When I do, it'll compile... unfortunately, some of= =20 these classes require it. Thanks, d ___________________________________________________ This message is from the kde-solaris mailing list. Account management: http://mail.kde.org/mailman/listinfo/kde-solaris. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.