docs: fix c++ client development process. (#4334)

Signed-off-by: innerNULL <lyt697@outlook.com>
pull/4348/head
inull 2020-12-01 17:45:13 +08:00 committed by GitHub
parent ee2b8205a8
commit d4db732767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -42,6 +42,7 @@ Run C++ example:
# copy necessary files
$ cp [Milvus root path]/sdk/cmake_build/libmilvus_sdk.so .
$ cp -r [Milvus root path]/sdk/include .
$ cp -r [Milvus root path]/sdk/thirdparty .
```
- Create file `main.cpp` in the project folder, and copy the following code into it:
@ -70,6 +71,8 @@ int main() {
project(test)
set(CMAKE_CXX_STANDARD 17)
include_directories(${PROJECT_SOURCE_DIR})
add_executable(milvus_client main.cpp)
target_link_libraries(milvus_client
${PROJECT_SOURCE_DIR}/libmilvus_sdk.so
@ -109,4 +112,4 @@ MyMilvusClient
- compile error "cannot find -lz"
```shell
$ apt-get install zlib1g-dev.
```
```