Compiling the TRACKRT on Centos7

Source: Internet
Author: User
Tags sleep gfortran


[Zzh@zhaozhonghai trackrt]$ make
g++-c-pipe-o2-wall-w-d_reentrant-dqt_no_debug-dqt_gui_lib-dqt_network_lib-dqt_core_lib-dqt_shared \
-i/usr/local/trolltech/qt-4.8.5/include/mkspecs/linux-g++-i/usr/local/trolltech/qt-4.8.5/include/qtcore-i/usr/ Local/trolltech/qt-4.8.5/include/qtnetwork-i/usr/local/trolltech/qt-4.8.5/include-c TrackRTCommB.cpp
trackRTCommB.cpp:In function ' int main (int, char**) ':
Trackrtcommb.cpp:127:15:error: ' Sleep ' is not declared in this scope
Sleep (1);
^
Trackrtcommb.cpp:170:17:error: ' Sleep ' is not declared in this scope
Sleep (1);
^
trackRTCommB.cpp:In function ' void trt_comline (int, char**, int*, char*, char*, char*, char*, int*, char*) ':
trackrtcommb.cpp:312:28:warning:converting to Non-pointer type ' char ' from NULL [-wconversion-null]
PRCSITE[INDX] = NULL; Null terminate the list
^
Make: * * * [TRACKRTB] Error 1
[Zzh@zhaozhonghai trackrt]$


[Zzh@zhaozhonghai trackrt]$ make
g++-c-pipe-o2-wall-w-d_reentrant-dqt_no_debug-dqt_gui_lib-dqt_network_lib-dqt_core_lib-dqt_shared \
-i/usr/local/trolltech/qt-4.8.5/include/mkspecs/linux-g++-i/usr/local/trolltech/qt-4.8.5/include/qtcore-i/usr/ Local/trolltech/qt-4.8.5/include/qtnetwork-i/usr/local/trolltech/qt-4.8.5/include-c TrackRTCommB.cpp
trackRTCommB.cpp:In function ' void trt_comline (int, char**, int*, char*, char*, char*, char*, int*, char*) ':
trackrtcommb.cpp:314:28:warning:converting to Non-pointer type ' char ' from NULL [-wconversion-null]
PRCSITE[INDX] = NULL; Null terminate the list
^
Gfortran-o3-wuninitialized-fno-f2c-ffast-math-fno-automatic-fno-backslash trackrtcommb.o-l/usr/local/lib-l/usr/ Local/trolltech/qt-4.8.5/lib-lqtnetwork-lqtcore-lpthread-lstdc++./trackrt_lib.a. /GEN_UTIL/GEN_UTIL_LIB.A. /.. /LIBRARIES/MATRIX/KINV_LIB.A. /.. /libraries/comlib/com_lib.a-o TRACKRTB
Rm-f TRACKRTCOMMB.O
g++-c-pipe-o2-wall-w-d_reentrant-dqt_no_debug-dqt_gui_lib-dqt_network_lib-dqt_core_lib-dqt_shared \
-i/usr/local/trolltech/qt-4.8.5/include/mkspecs/linux-g++-i/usr/local/trolltech/qt-4.8.5/include/qtcore-i/usr/ Local/trolltech/qt-4.8.5/include/qtnetwork-i/usr/local/trolltech/qt-4.8.5/include-c Test_trackRT.cpp
Gfortran-o3-wuninitialized-fno-f2c-ffast-math-fno-automatic-fno-backslash test_trackrt.o-l/usr/local/lib-l/usr/ Local/trolltech/qt-4.8.5/lib-lqtnetwork-lqtcore-lpthread-lstdc++./trackrt_lib.a. /GEN_UTIL/GEN_UTIL_LIB.A. /.. /LIBRARIES/MATRIX/KINV_LIB.A. /.. /libraries/comlib/com_lib.a-o TEST_TRACKRT
Rm-f TEST_TRACKRT.O
[Zzh@zhaozhonghai trackrt]$

------------------------------------------------

Error occurred: Sleep (1) was not found, function, added in this CPP source file

#include <unistd.h>

Be resolved.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.