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.
Questions tagged [shared-libraries]
7905 questions
3
votes
1 answer
LuaJIT FFI not loading symbols from executable
First Lua code:
local ffi = require "ffi"
ffi.cdef[[
void printc(const char *fmt, ...);
]]
ffi.C.printc("Hello world")
Does not work. Error:
boot.lua:6: /usr/lib64/libluajit-5.1.so.2: undefined symbol: printc
However, the symbol is in fact…

Accumulator
- 873
- 1
- 13
- 34
3
votes
1 answer
Load dependent library with dlopen in case of custom library location
My program uses 'libone.so' object from certain vendor. It has custom location within a system. The program searches for this library location and then open it with dlopen. A problem appears when 'libone.so' do some stuff under the hood and starts…

dojo_user
- 85
- 10
3
votes
1 answer
Why do I get a runtime error after I linked a shared library in a non-standard location?
I'm new to Linux. I wrote an application that uses MySQL, and its Makefile is posted as follows:
OBJ = main.o PeerDbOpMgr.o
MYSQL_INC = ./mysql/include
LNK_MYSQL = ./mysql/lib/ -lmysql
main : $(OBJ)
g++ -g -o main $(OBJ) -L$(LNK_MYSQL)…

Dan
- 33
- 4
3
votes
0 answers
Module not found: Error: Can't resolve `pp-shared-components` - React Shared Library of Components in Jenkins
I have a React library called pp-shared-components. It lives on a github repo, so to install it I do the following in my package.json file.
"dependencies": {
"pp-shared-components":…

mcclosa
- 943
- 7
- 29
- 59
3
votes
3 answers
instanceof not work correctly in typescript library project
I build a typescript library project. and use some classes from a public package.
let's say a simple function to test it is a BadRequestException or not
import { BadRequestException } from "@nestjs/common";
export function test(error) {
let a =…

Kent Wood
- 1,392
- 2
- 14
- 30
3
votes
1 answer
Good practice for spliting C++ project into libraries
I am working on a Qt application which has different features bluetooth stack, storage (data model), views, controllers, .. The project architecture is based on an MVC pattern. Nothing fancy or complicated.
The current project has a lot of libraries…

Eric Brinette
- 31
- 3
3
votes
1 answer
Angular Library outside the Angular Cli Workspace
Is it possible to have a library outside the workspace of angular cli?
Traditional scheme:
my-workspace/
... (workspace-wide config files)
projects/ (generated applications and libraries)
my-first-app/ --(an explicitly…

Cristian Rinaldi
- 329
- 4
- 15
3
votes
0 answers
How to add an external library to nx manually
I am using nx.dev for a new application.
I generated a library for my application, now I want to use this library adding in NX applications
how to import library in project NX

adnane abouchadi
- 61
- 1
- 7
3
votes
2 answers
ldd shows that ELF interpreter is present but I still get a "No such file or directory"
Recently I struggled porting an existing C++ application onto a new production environment (updated kernel, updated glibc, etc). Even though the output of ldd showed that all my .so were found, including the ELF interpreter, the execution always…

Bipolar Transistor
- 108
- 7
3
votes
1 answer
Supress ld symbol not found error to resolve later in runtime
I have the following library:
shared4.c:
int get_another_int(void){
return 10;
}
And the binary:
#include
#include
#include
int get_another_int(void);
int main(void){
void *handle =…

Some Name
- 8,555
- 5
- 27
- 77
3
votes
0 answers
How to create a shared library of just QML files
I am working on project that will hold shared qml components such as a button, status bar, numeric key pad, etc. I want to be able to compile these qml files into one binary (.so/.dll) to provide for use for multiple applications. currently this is…

pjorourke05
- 61
- 5
3
votes
4 answers
Common Groovy script in active choices parameter
I have a groovy script that will be common to many jobs - they will all contain an Active Choices Reactive Parameter. Rather than repeat the same script dozens of times I would like to place in a (library | ??) one time, and reference it in each…

John Hennesey
- 343
- 1
- 2
- 18
3
votes
0 answers
How to set LD_LIBRARY_PATH while using bazel? Or is there a way to avoid using LD_LIBRARY_PATH while using bazel?
I want to import some .so files in my python code which is using bazel. For this i have to set LD_LIBRARY_PATH before running the program other wise I am getting an error
ImportError: libsquishrunnerlib.so: cannot open shared object file: No such…

gowtham naidu
- 31
- 2
3
votes
1 answer
How to create a shared c library from a static c and c++ library?
Summarize
I'm integrating a static library based on c/c++ into a shared library based on c (using cmake on linux).
I have errors like this: libmylib.so: undefined reference to `std::ios_base::Init::Init()'
The problem is strongly related with the…

Esmeralda Quintero
- 113
- 6
3
votes
1 answer
Calling WCF Services without using WCF - good or bad practice?
I'm developing a service oriented architecture for an application and I would like the services to be exposed both over WCF as well as usable through a simple library. Ideally I would like to reduce duplicated code.
Conceptually, this maps…

Travis
- 2,654
- 4
- 26
- 46