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

Re: System Monitor Applet



Sven Luther <sven.luther@wanadoo.fr> writes:

> BTW, my hardware-monitor applet doesn't build with gcc 3.3 anymore, it
> fails with :
>
> monitor-impls.cpp: Dans constructor « CpuUsageMonitor::CpuUsageMonitor(int) »:
> monitor-impls.cpp:111: error: `assert' undeclared (first use this function)
> monitor-impls.cpp:111: error: (Each undeclared identifier is reported only
> 	once for each function it appears in.)
>
> A quick glance at the gcc 3.3 page at the gnu site did not give me
> anything conclusive. Short of simply commenting out all these asserts,
> do someone know the right solution for this ? Should i just include
> assert.h in the problematic files ? And if so, do i need to take care to
> test for pre gcc-3.3 versions and conditionally include the include file ?
>
monitor-impls.cpp is missing an #include <assert.h>

Regards, Andy
-- 
Andreas Rottmann         | Rotty@ICQ      | 118634484@ICQ | a.rottmann@gmx.at
http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

Make free software, not war!



Reply to: