Bug 508 - Compile error: use of undefined type InputMonitorInterface
Status:
RESOLVED WORKSFORME
Component:
Build-Env
Version:
1.8.1
Hardware:
Other Linux
Importance:
P2 blocker
Target Milestone:
---
Assignee:
Rob Caelers
URL:
Depends on:
Blocks:
Reported:
Jan 22 2006 11:27:40 UTC
by:
Davor Cubranic
Modified:
Apr 23 2006 01:17:49 UTC
WhoWhenWhatRemovedAdded
Rob CaelersApr 23 2006 01:17:49 UTCstatusNEWRESOLVED
resolutionWORKSFORME
Description
Davor Cubranic  Jan 22 2006 11:27:40 UTC
Compiling source distribution of Workrave 1.8.1 on KUbuntu 5.10, I get the following error:

ActivityMonitor.cc: In constructor ‘ActivityMonitor::ActivityMonitor(const char*)’:
ActivityMonitor.cc:96: error: invalid use of undefined type ‘struct InputMonitorInterface’
ActivityMonitor.hh:38: error: forward declaration of ‘struct InputMonitorInterface’
ActivityMonitor.cc: In destructor ‘virtual ActivityMonitor::~ActivityMonitor()’:
ActivityMonitor.cc:107: warning: possible problem detected in invocation of delete operator:
ActivityMonitor.cc:107: warning: invalid use of undefined type ‘struct InputMonitorInterface’
ActivityMonitor.hh:38: warning: forward declaration of ‘struct InputMonitorInterface’
ActivityMonitor.cc:107: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined.
ActivityMonitor.cc: In member function ‘virtual void ActivityMonitor::terminate()’:
ActivityMonitor.cc:119: error: invalid use of undefined type ‘struct InputMonitorInterface’
ActivityMonitor.hh:38: error: forward declaration of ‘struct InputMonitorInterface’
Comment 1
Rob Caelers  Jan 22 2006 13:29:09 UTC
I was unable to reproduce this problem on Ubuntu/Dapper Drake, Debian/Unstable and  NetBSD.

What gcc compiler version are you using?