Can't compile on amd64
Brought to you by:
rrwood
I have Gentoo Linux on amd64, when I execute make I see
the next error:
Compiling src/main.cc
src/main.cc: In function `int main(int, char**)':
src/main.cc:161: error: `errno' undeclared (first use this
function)
src/main.cc:161: error: (Each undeclared identifier is
reported only once for each function it appears in.)
Compiling src/OBPager.cc
Linking obpager
g++: ./objs/src/main.o: No such file or directory
make: *** [obpager] Error 1
any idea?
thanks
Logged In: NO
if you add this line in src/main.cc
#include <errno.h>
should compile ok.
Logged In: YES
user_id=863304
thanks,
obpager compile ok.
but now I have another problem, when I execute obpager, it
shows all desktops, but when I open a window in a desktop, this
desktop disappear from obpager. After open a window in every
desktop, obpager print this error:
Floating point exception
any idea?
thanks
Logged In: YES
user_id=1743071
Originator: NO
Hi,
I've already experienced this problem and solved it including <errno.h> in main.cc. You just need to add a line like:
#include <errno.h>
at the beginning of the file src/main.cc (just below the line "#include <unistd.h>" is ok).