What does "library has no symbol" mean?

Viewed 10576

I'm using CMake to build some dependency libraries that are required for my projects. They are Boost_system, Boost_filesystem, and Boost_program_options. I'm compiling the static libraries separately, rather than to compile the whole Boost library.

Everything works, but I got the following warning messages:

...
[ 67%] Building CXX object filesystem/CMakeFiles/filesystem.dir/src/utf8_codecvt_facet.cpp.o
[ 70%] Building CXX object filesystem/CMakeFiles/filesystem.dir/src/windows_file_codecvt.cpp.o
[ 74%] Linking CXX static library libfilesystem.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libfilesystem.a(windows_file_codecvt.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libfilesystem.a(windows_file_codecvt.cpp.o) has no symbols
[ 74%] Built target filesystem
[ 77%] Building CXX object CMakeFiles/canalogsmp.dir/src/Array2D.cpp.o
...

My question would be:

  • What is the symbol? And what does the warning message mean?
  • How can I get rid of this warning message?
1 Answers
Related