Menu

#3 Can't compile on amd64

open
nobody
None
5
2005-06-07
2005-06-07
David Majŕ
No

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

Discussion

  • Nobody/Anonymous

    Logged In: NO

    if you add this line in src/main.cc
    #include <errno.h>

    should compile ok.

     
  • David Majŕ

    David Majŕ - 2005-10-03

    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

     
  • edjunior

    edjunior - 2008-02-21

    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).

     

Log in to post a comment.

MongoDB Logo MongoDB