Package: devtodo
Version: 0.1.18-2
Severity: normal
Tags: patch

When building 'devtodo' on amd64/unstable with gcc-4.0,
I get the following error:

make[3]: Entering directory `/devtodo-0.1.18/src'
if x86_64-linux-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../util -DNDEBUG   -Wall -g 
-O2 -MT Todo.o -MD -MP -MF ".deps/Todo.Tpo" \
  -c -o Todo.o `test -f 'Todo.cc' || echo './'`Todo.cc; \
then mv -f ".deps/Todo.Tpo" ".deps/Todo.Po"; \
else rm -f ".deps/Todo.Tpo"; exit 1; \
fi
Todo.h:64: error: ISO C++ forbids declaration of 'TodoDB' with no type
Todo.h:64: error: expected ';' before '*' token
Todo.cc: In constructor 'Todo::Todo()':
Todo.cc:7: error: class 'Todo' does not have any field named 'db'
Todo.cc: In member function 'Todo& Todo::operator=(const Todo&)':
Todo.cc:118: error: 'db' was not declared in this scope
Todo.cc:118: error: 'const class Todo' has no member named 'db'
make[3]: *** [Todo.o] Error 1
make[3]: Leaving directory `/devtodo-0.1.18/src'

With the attached patch 'devtodo' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/devtodo-0.1.18/src/Todo.h ./src/Todo.h
--- ../tmp-orig/devtodo-0.1.18/src/Todo.h       2004-02-09 15:10:37.000000000 
+0100
+++ ./src/Todo.h        2005-06-20 19:06:14.000000000 +0200
@@ -8,6 +8,8 @@
 
 using namespace std;
 
+class TodoDB;
+
 /*
        Todo is the basic data structure for each entry in the .todo database.
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to