#7 does not install

open
nobody
None
5
2014-06-06
2009-04-26
Adrian
No

OS: Kubuntu 8.10 Intrepid
Compile runs fine, but make gives some errors:

dgtnixTest.cpp: In function ‘int main(int, char**)’:
dgtnixTest.cpp:45: error: ‘exit’ was not declared in this scope
dgtnixTest.cpp:68: error: ‘exit’ was not declared in this scope
make[2]: *** [dgtnixTest-dgtnixTest.o] Error 1
make[2]: Leaving directory `/home/adi/2/dgtnix-1.9.1/utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/adi/2/dgtnix-1.9.1'
make: *** [all] Error 2

Discussion

  • Ali Alem
    Ali Alem
    2014-06-06

    Edit the files (dgtnix-1.9.1/src/dgtnix.c AND dgtnix-1.9.1/utils/dgtnixTest.cpp) by adding the following to top below other includes:

    #include <stdlib.h>
    

    The errors will disappear.

     
    Last edit: Ali Alem 2014-06-06