Application Environment Ubuntu
1compiling
question 1: configure:error: " Error:libcrypto required."
Solution:apt-getinstall Libssl-dev
Issue 2:uint32_tdoes not name a type
Solve:
uint32_t definition file in stdint.h, via whereis stdint.h
Stdint.h:/usr/include/stdint.h
description in the standard include path, add the #include in the source file where the compilation error occurred <stdint.h>
issue 3:Makefile file's BOOST library path specified error
Solve:
MakeFile file : Boost_dir =/usr/local/include/boost
and the actual situation is: Boost_dir=/usr/include/boost
# Apt-get Installlibboost-dev
The installation is successful, but the location of the installation is unclear
Find The installation directory for your local boost library:
Whereis boost
Boost:/usr/include/boost
issue 4:ntohs There are undefined compilation errors
Solve:
contains header files #include <arpa/inet.h>
issue 5: compilation example appears Thrift Library function large number of undefined compilation errors
Solve:
The main link -lthrift must be placed in the back of CppClient.cppCppServer.cpp, modify the Makefile file, adjust the order of the two. When a source code file is compiled without a function definition, only the function definition will be searched backwards .
Thrift Linux Compilation calls