Putting:
#define UNUSED
at the top of progress.h did indeed get past this error. Thanks! Maybe someone could file a bug for this for this version of gcc.
make -DUNUSED doesn't seem to be a recognized argument to make.
Also, setting and exporting PCRE_CFLAGS and GMIME_CFLAGS doesn't work, but pointing CPPFLAGS at these header locations does.
But now I have new problems further on:
<snip> g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I/opt/pan-gtk2.10.9/include/gmime-2.0 -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/opt/pan-gtk2.1
0.9/include -I/opt/pan-gtk2.10.9.uci/include/gmime-2.0 -I/opt/pan-gtk2.10.9.uci/ include -g -O2 -MT worker-pool.o -MD -MP -MF .deps/worker-pool.Tpo -c -o worker -pool.o worker-pool.cc worker-pool.cc:72: error: parse error before `__attribute__' worker-pool.cc:72: error: prototype for `void pan::WorkerPool::Worker::worker_thread_func(...)' does not match any in class `pan::WorkerPool::Worker' worker-pool.h:99: error: candidate is: static void pan::WorkerPool::Worker::worker_thread_func(void*, void*) worker-pool.cc: In member function `void pan::WorkerPool::Worker::worker_thread_func(...)': worker-pool.cc:75: error: `g' undeclared (first use this
function) worker-pool.cc:75: error: (Each undeclared identifier is reported only once for each function it appears in.) worker-pool.cc:75: error: ISO C++ forbids declaration of `g_idle_add' with no type worker-pool.cc:75: error: `int g_idle_add' redeclared as different kind of symbol /usr/include/glib-2.0/glib/gmain.h:310: error: previous declaration of `guint g_idle_add(gboolean (*)(void*), void*)' worker-pool.cc:75: error: initializer list being treated as compound _expression_ worker-pool.cc:75: warning: left-hand operand of comma is a reference, not call, to function `pan::WorkerPool::Worker::main_thread_cleanup_cb' worker-pool.cc:76: error: parse error before `}' token make[3]: *** [worker-pool.o] Error 1 </snip>
|