c++ compilation problem

1. When calling the lower version of gcc7.3.0, you need to add a compiler option: -D_GLIBCXX_USE_CXX11_ABI=0

2. When compiling the source code, you can specify the compilation options in configure:

     ./configure CFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 " CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" LDFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0"

3. When using cmake, when calling find_package(protobuf), you can modify the following parameters to specify the directory to be searched

     CMAKE_PREFIX_PATH

     CMAKE_SYSTEM_PREFIX_PATH

 

Guess you like

Origin blog.csdn.net/zgb40302/article/details/113194529