building and linking a shared library

When using -l<libname> to specify library to link, the linker will first search for lib<libname>.so before searching for lib<libname>.a. In your case it doesn’t work, because the library filename is not with .so suffix. You may create simlink libbeat.so -> libbeat.so.1.0.1 or libbeat.so -> libbeat.so.1 libbeat.so.1 -> libbeat.so.1.0.1 You can also use -l:libbeat.so.1.0.1 (if your … Read more