Menu

#3 Build fails; need #include <unistd.h>

open
nobody
eXaro (2)
5
2012-07-26
2012-07-26
No

Build fails with gcc 4.7:
/tmp/yaourt-tmp-root/aur-exaro/src/exaro_2.0.0/apps/designer/main.cpp: In function ‘int main(int, char**)’:
/tmp/yaourt-tmp-root/aur-exaro/src/exaro_2.0.0/apps/designer/main.cpp:122:203: error: ‘syscall’ was not declared in this scope
/tmp/yaourt-tmp-root/aur-exaro/src/exaro_2.0.0/apps/designer/main.cpp:126:201: error: ‘syscall’ was not declared in this scope
make[2]: *** [apps/designer/CMakeFiles/exaro.dir/main.cpp.o] Error 1
make[1]: *** [apps/designer/CMakeFiles/exaro.dir/all] Error 2
make: *** [all] Error 2

All it needs is this added to that main.cpp:
#include <unistd.h>

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.