例子如下:
g++ -o main main.cpp
-I/home/wwt/CloudComputing/wwt/cdb/include/cdb
-I/home/wwt/CloudComputing/wwt/cdb/servers
-I/home/wwt/CloudComputing/wwt/cdb/third_party/rpclib/include
-L/home/wwt/CloudComputing/wwt/cdb/build
-L/home/wwt/CloudComputing/wwt/cdb/build/third_party/leveldb
-L/home/wwt/CloudComputing/wwt/cdb/build/third_party/rpclib
-L/home/wwt/CloudComputing/wwt/cdb/build/servers/tcp_server
-std=c++11 -lcdb -lleveldb -lrpc -ltcp_server -lpthread
-I:表示包含的include文件
-L: 表示包含的库文件
-lcdb:对应库文件的简写