Menu

Missing headers?/Chybějící hlavičky

Help
2009-02-01
2013-04-01
  • Pavel Mlčoch

    Pavel Mlčoch - 2009-02-01

    When I try build on Ubuntu Intrepid, I've got:
    Při překladu na Ubuntu 8.10 jsem dostal následující chybu:

    pavka@pavka:~/Plocha/smartmenu-0.2.3/src$ make
    make[1]: Entering directory `/home/pavka/Plocha/smartmenu-0.2.3/tools'
    gcc -O2 -Wall -D"HAVE_STRSEP" -I"/usr/X11R6/include" ./xevent.c -o ./xevent -L/usr/X11R6/lib -lX11
    ./xevent.c: In function ‘find_sub_sub_window’:
    ./xevent.c:227: warning: pointer targets in passing argument 4 of ‘XGetGeometry’ differ in signedness
    ./xevent.c:227: warning: pointer targets in passing argument 5 of ‘XGetGeometry’ differ in signedness
    ./xevent.c:236: warning: pointer targets in passing argument 2 of ‘find_sub_sub_window’ differ in signedness
    ./xevent.c:236: warning: pointer targets in passing argument 3 of ‘find_sub_sub_window’ differ in signedness
    ./xevent.c: In function ‘find_sub_window’:
    ./xevent.c:271: warning: pointer targets in passing argument 4 of ‘XGetGeometry’ differ in signedness
    ./xevent.c:271: warning: pointer targets in passing argument 5 of ‘XGetGeometry’ differ in signedness
    ./xevent.c:280: warning: pointer targets in passing argument 2 of ‘find_sub_sub_window’ differ in signedness
    ./xevent.c:280: warning: pointer targets in passing argument 3 of ‘find_sub_sub_window’ differ in signedness
    make[1]: Leaving directory `/home/pavka/Plocha/smartmenu-0.2.3/tools'
    g++ -Wall -g3 -c -o conf.o conf.cc
    conf.cc:35: warning: deprecated conversion from string constant to ‘char*’
    conf.cc:35: warning: deprecated conversion from string constant to ‘char*’
    conf.cc: In constructor ‘Configuration::Configuration(char*, char*)’:
    conf.cc:75: warning: deprecated conversion from string constant to ‘char*’
    g++ -Wall -g3    -c -o irctrl.o irctrl.cc
    irctrl.cc: In member function ‘bool irControl::ignoreButton(irButton)’:
    irctrl.cc:217: warning: comparison between signed and unsigned integer expressions
    irctrl.cc: In member function ‘void irControl::fdReady()’:
    irctrl.cc:258: error: ‘exit’ was not declared in this scope
    irctrl.cc:275: error: ‘exit’ was not declared in this scope
    make: *** [irctrl.o] Error 1
    pavka@pavka:~/Plocha/smartmenu-0.2.3/src$

     
    • Pavel Mlčoch

      Pavel Mlčoch - 2009-02-01

      It's solved:
      For gcc version 4.3.2  (for example version Ubuntu 4.3.2-1ubuntu12) Is needed add this headers:

      #include <cstdlib>
      #include <cstring>
      #include <unistd.h>

      Can someone add this into distribution sources?

       

Log in to post a comment.

MongoDB Logo MongoDB