Dear all,
I have been trying the whole night to install FOX 1.6.36 on my ubuntu machine.
I get an error when compiling on line 58 of the file FXDir.cpp.
The excerpt that pops first is:
#ifdef WIN32
struct SPACE {
HANDLE handle;
FXuint first;
WIN32_FIND_DATA result;
};
#else
struct SPACE {
DIR * handle;//line 58!
struct dirent* dp;
struct fxdirent result;
};
#endif
The message errors I get are:
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|58|Fehler: ISO-C++ verbietet Deklaration von »DIR« ohne Typ|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|58|Fehler: expected »;« before »*« token|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|60|Fehler: Feld »result« hat unvollständigen Typen|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp||In constructor »FX::FXDir::FXDir()«:|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|74|Fehler: »struct FX::SPACE« hat kein Element namens »handle«|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp||In constructor »FX::FXDir::FXDir(const FX::FXString&)«:|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|88|Fehler: »struct FX::SPACE« hat kein Element namens »handle«|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp||In member function »virtual bool FX::FXDir::open(const FX::FXString&)«:|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|113|Fehler: »struct FX::SPACE« hat kein Element namens »handle«|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|113|Fehler: »opendir« wurde in diesem Gültigkeitsbereich nicht definiert|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|114|Fehler: »struct FX::SPACE« hat kein Element namens »handle«|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp||In member function »virtual bool FX::FXDir::isOpen() const«:|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|128|Fehler: »struct FX::SPACE« hat kein Element namens »handle«|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp||In member function »virtual bool FX::FXDir::next()«:|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|147|Fehler: »struct FX::SPACE« hat kein Element namens »handle«|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|147|Fehler: »readdir« wurde in diesem Gültigkeitsbereich nicht definiert|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp||In member function »virtual FX::FXString FX::FXDir::name() const«:|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|163|Fehler: invalid use of incomplete type »struct FX::direct«|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|59|Fehler: forward declaration of »struct FX::direct«|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp||In member function »virtual void FX::FXDir::close()«:|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|177|Fehler: »struct FX::SPACE« hat kein Element namens »handle«|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|177|Fehler: »closedir« wurde in diesem Gültigkeitsbereich nicht definiert|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|178|Fehler: »struct FX::SPACE« hat kein Element namens »handle«|
/home/todor/math/partial fractions/trunk/fox-1.6.36/src/FXDir.cpp|215|Fehler: »::rmdir« wurde nicht deklariert|
||=== Build finished: 17 errors, 0 warnings ===|
(Sorry for them being in german, hope you will make out the meaning).
Which header file defines DIR? I presume I am having an out-of-date header file.
Installing the required by FOX packages for Ubuntu on my netbook has been a nightmare so far; I have installed 10+ packages just to try to get all the headers/libs/etc, right, and still can't get it right. Is there a list of minimum packages that can be installed to get the toolkit running "out of the box"?
Thanks for the help!