shared-libraries

install symbolic links with coreutils install

流过昼夜 提交于 2020-08-27 04:26:34
问题 I built a library and I want to install the library to /usr/local/lib using coreutils install . The result of the build looks as follows: libfoo.so -> libfoo.so.1 libfoo.so.1 -> libfoo.so.1.1 libfoo.so.1.1 I want to retain the symbolic links and install the files as is to /usr/local/lib . However, if I run install libfoo* /usr/local/lib the symbolic links are resolved and /usr/local/lib looks as follows: libfoo.so libfoo.so.1 libfoo.so.1.1 In other words, these are all real files and no

install symbolic links with coreutils install

夙愿已清 提交于 2020-08-27 04:26:14
问题 I built a library and I want to install the library to /usr/local/lib using coreutils install . The result of the build looks as follows: libfoo.so -> libfoo.so.1 libfoo.so.1 -> libfoo.so.1.1 libfoo.so.1.1 I want to retain the symbolic links and install the files as is to /usr/local/lib . However, if I run install libfoo* /usr/local/lib the symbolic links are resolved and /usr/local/lib looks as follows: libfoo.so libfoo.so.1 libfoo.so.1.1 In other words, these are all real files and no

How to debug external library code in Visual Studio Code?

不羁的心 提交于 2020-08-25 12:47:24
问题 I'm using Visual Studio Code in a basic C++ project. I link a library built with gcc -g option to include the debug symbols information. However, when I want to step into a function call from that library it doesn't get in. In Visual Studio this How to debug external class library projects in visual studio? would solve the problem but I don't know how to do it in Visual Studio Code. Probably source files for that library should be specified somewhere? But where can I specify them? 回答1: Debug

How to debug external library code in Visual Studio Code?

安稳与你 提交于 2020-08-25 12:34:53
问题 I'm using Visual Studio Code in a basic C++ project. I link a library built with gcc -g option to include the debug symbols information. However, when I want to step into a function call from that library it doesn't get in. In Visual Studio this How to debug external class library projects in visual studio? would solve the problem but I don't know how to do it in Visual Studio Code. Probably source files for that library should be specified somewhere? But where can I specify them? 回答1: Debug

Using a shared library in another shared library

坚强是说给别人听的谎言 提交于 2020-08-22 06:31:06
问题 I am creating a shared library from a class from an example I got here C++ Dynamic Shared Library on Linux. I would like to call another shared library from the shared library created and then use it in the main program. So I have the myclass.so library and I want to call another library say anotherclass.so from the myclass.so library and then use this myclass.so library in the main program. Any idea on how I can do this please. 回答1: There is more than one way in which multiple shared