Razor-qt / razor-qt

Razor is now LXQt:
http://lxqt.org
Other
366 stars 78 forks source link

build error at final compilation main.c of globalkeyshortcuts, getenv problems #619

Closed mckaygerhard closed 11 years ago

mckaygerhard commented 11 years ago

these errors:

at razorqt-globalkeyshortcuts/src/main.cpp:

build error log:

/root/razorqt_0.5.2_deb/razorqt-0.5.2/razorqt-globalkeyshortcuts/src/main.cpp: In function ‘int main(int, char**)’:
/root/razorqt_0.5.2_deb/razorqt-0.5.2/razorqt-globalkeyshortcuts/src/main.cpp:220: error: ‘EXIT_FAILURE’ was not declared in this scope
/root/razorqt_0.5.2_deb/razorqt-0.5.2/razorqt-globalkeyshortcuts/src/main.cpp:220: error: ‘EXIT_SUCCESS’ was not declared in this scope
/root/razorqt_0.5.2_deb/razorqt-0.5.2/razorqt-globalkeyshortcuts/src/main.cpp:228: error: ‘EXIT_FAILURE’ was not declared in this scope
/root/razorqt_0.5.2_deb/razorqt-0.5.2/razorqt-globalkeyshortcuts/src/main.cpp:237: error: ‘getenv’ was not declared in this scope
/root/razorqt_0.5.2_deb/razorqt-0.5.2/razorqt-globalkeyshortcuts/src/main.cpp:246: error: ‘EXIT_FAILURE’ was not declared in this scope
make[3]: *** [razorqt-globalkeyshortcuts/src/CMakeFiles/razor-globalkeyshortcuts.dir/main.cpp.o] Error 1
mckaygerhard commented 11 years ago

ok missing header in main:

include

please patch it!

mckaygerhard commented 11 years ago

i mean

#include <stdlib.h>
kuzmas commented 11 years ago

fixed by https://github.com/Razor-qt/razor-qt/commit/00820008d8f291cf355b7136ce8d2710e892c002