Re: [gtkmm] Compiling problems...



Amit BHATNAGAR schrieb:
The glademm make failed again (after compiling for 1/2 hour). This time it
says...

glade-- is not small ... You will speed up compilation if you prefix configure by export CXXFLAGS="-O2" (which disables debugging information).

In file included from glade--.cc:33:
getopt.h:110: declaration of C function `int getopt()' conflicts with
/usr/include/unistd.h:282: previous declaration `int getopt(int, char*
const*, const char*)' here


any suggestions?

It seems configure.in does not find a getopt_long and the replacement code conflicts with solaris. Perhaps deleting line 110 of src/getopt.h (extern int getopt ();) will fix this problem - does it?

Does solaris have getopt_long? If yes which header is needed.

placing a #include "alloca.h" in this file, (and all others
that complained) corrected this error.

Put into my TODO list.

   Christof




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]