Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [shared-libraries]

Shared libraries are libraries that are loaded by programs when they start. A single shared copy of each library is loaded into physical memory and may be used by multiple processes at the same time. This reduces memory use and improves system performance. This tag should never be used alone.

shared-libraries
-2 votes
1 answer
39 views

Can I write a library to preload in C++? Is there anything I need to do other than prepend `extern "C"` to the functions to intercept? [closed]

I am working on a personal project where I need to intercept Linux APIs like open(), read() etc, and I would like to do some data analysis on them. I would need to keep a C++ data structure std::map ...
Aravind A's user avatar
  • 462
0 votes
0 answers
8 views

Android. Gradle. Conflict of native SO libraries names on Windows

I have a huge odl Android project and now we need to update a version of some old legacy library. We are trying to keep 2 version of the same library. Now they are totally different inside. There are ...
Vetalll's user avatar
  • 3,634
1 vote
1 answer
74 views

ODR Violation with static variables and multiple shared libraries in Linux

Say I have the following scenario: A static library (let's call it DummyStatic.a) that declares and defines the following class: class DummySingleton { private: static DummySingleton the_instance_;...
pureofpure's user avatar
  • 1,090
1 vote
0 answers
170 views

Global variable marked as extern is duplicated

I am linking a shared library that declares a global variable like so: __attribute__((visibility("hidden"))) extern HookList<MallocHook::DeleteHook> delete_hooks_; See src/malloc_hook-...
Volodymyr Lashko's user avatar
1 vote
1 answer
44 views

ld cannot find -lblas -llapack while installing R package clarabel (no root access)

I totally understand if this is an incredibly specific situation which would be better directed to my system administrators instead of StackOverflow, but I thought I'd give it a shot anyway. I am ...
ethan-pawl's user avatar
0 votes
0 answers
26 views

In Yocto, how do I install the libiec61850 library and examples on a Linux target?

I've created a Linux image with overlays, docker, docker compose, added and configured users and it all works. I'm now trying to install libiec61850 library and run examples. I've installed the ...
Stan's user avatar
  • 1
-2 votes
0 answers
37 views

Java JNI: Issues with Loading Dependent Dynamic Libraries Using loadLibraryFromJar and C++ System Functions Returning Empty Values [duplicate]

Java JNI calls a C++ dynamic library using loadLibraryFromJar, and this dynamic library depends on other dynamic libraries. When I place the dependent dynamic libraries in the system path, /usr/lib/, ...
liang li's user avatar
1 vote
0 answers
24 views

Huge memory consumption when iterating systemd journal

Dear community, here are the story description and 2 questions: I'm trying to fix significant memory consumption in a systemd (--version is 250) journal forwarding application. Our application is ...
user3518295's user avatar
0 votes
3 answers
52 views

bad window path name tkinter

I am trying to code rock paper scissors in tkinter python but my reset button command gives me the error: Traceback (most recent call last): File "C:\Python36\lib\tkinter\__init__.py", ...
neo's user avatar
  • 23
1 vote
0 answers
48 views

Cython - Export my lib to a .so file and use in a C program - Symbols not found

I'm learning cython and the exercise I'm doing wants me to make a lib (.so) to use in a C program (already compiled), that require that lib. I already have done the lib. It is working. But now, I need ...
jessica arruda's user avatar
0 votes
0 answers
10 views

Error Issue with functions "estimate_pls" from SEMinR library

I'm trying to build a path model using the SEMinR library. This is the code I'm trying to run : mediated_sm <- relationships( paths(from = "clicks_2095320", to = "total_conversions&...
Radu Miu's user avatar
0 votes
0 answers
17 views

How does the dynamic linker resolve symbols at run time?

I'm trying to understand how the dynamic linker resolves symbols at run time. I read chunks (but not all) of David Beazley et. al's The Inside Story on Shared Libraries and Dynamic Loading, but I don'...
user2374991's user avatar
0 votes
0 answers
19 views

Build failure on Msys2/ming64 environment by clang with clang64/bin PATH

On Msys2/ming64 environment, tried to build stockfish by use of clang/llvm, as PATH: clang64/bin precedes over mingw64/bin use flags: CXXFLAGS: -Wall -Wcast-qual -fno-exceptions -std=c++17 -pedantic ...
user17227456's user avatar
  • 1,287
1 vote
1 answer
30 views

Why is linking a dynamic library against a static library apparently easy on Windows but on Linux `-fPIC` makes that difficult? [closed]

I am working on adapting an existing ODBC driver so that it can target Linux. ODBC Drivers are generally distributed as DLLs on Windows and shared objects (.so) on Linux. The driver depends on Boost. ...
William Navarre's user avatar
2 votes
1 answer
54 views

grpc c++ - Shared library vs static library

I tried to build grpc c++ in two ways. One with -DBUILD_SHARED_LIBS=ON and one without it. When it is off, I get in the lib/ directory, for example: 360M libgrpc.a (Any many other libraries) When it ...
user3599803's user avatar
  • 6,894

15 30 50 per page
1
2 3 4 5
538