488 questions
0
votes
0
answers
86
views
library handle in fortran
I have a fortran dll/so which needs to know its own programhandle.
On windows, I can obtain the handle from the DLLMain routine:
integer(4) function DllMain(hInst, ul_reason_being_called, lpReserved)
...
0
votes
0
answers
98
views
Unable to reload a C# dll from C#
Good morning. I want to reload a dll at runtime but I can't. I have two programs lets name them host and plugin. Host compiles to an executable and plugin compiles to a dll. Host loads a function from ...
0
votes
1
answer
37
views
Free Pascal dylib exports with name clauses not findable via dlsym on macOS
I'm creating a Free Pascal dynamic library (.dylib) on macOS that works on Windows but fails to load symbols on macOS. The symbols appear in the symbol table when checked with nm, but dlsym cannot ...
1
vote
0
answers
97
views
Why is a release build dynamic library function slow when called from a debug build executable?
I'm trying to set up the Slang shader compiler, and the first step is to create a global session with:
SlangResult slang_result = slang::createGlobalSession();
This takes a long time, like 5 seconds ...
0
votes
1
answer
493
views
Loading external Native Libraries to the JVM at Runtime in Java 21
I want to load an external library (eg:\Lic\64bit) which contains some DLL files inside it to JVM at runtime. Can't use Reflection and FFM (Java Foreign Function Memory API) as well.
I tried with some ...
0
votes
0
answers
45
views
What could be the reason for openmp to constantly recreate the thread pool?
My program runs on linux, and uses a openmp-enabled dynamic library (named calc.so) for fast parallel computation, calc.so exports this function double calc(double* data).
When the program is running, ...
0
votes
1
answer
156
views
Segfault on calling function pointer obtained with dlopen() in Rust
I am currently playing with POSIX functions defined in dlfcn.h with Rust, with the goal of calling a function in a separated .so file.
The project actually contains 2 crates:
The binary loading the ...
1
vote
1
answer
291
views
Link shared library through makefile
The code compiles as it should, but somehow, the binary file doesn't know where the library is.
❯ ldd myteams_cli
linux-vdso.so.1 (0x00007ffcbc1b4000)
libmyteams.so => not found
...
0
votes
1
answer
143
views
Is there a better way to define multiple function definitions when using a dynamic library?
The following code listing works just fine - but as I'm still dipping my toes into the C++ waters, I'm wondering if there is a better - more generic - way to define each of the function definitions.
I ...
1
vote
0
answers
166
views
Exposing common API from main program *to* dylib in Rust
I'm planning on making a game in Rust, and I'd like to have native plugins/mods in the form of dynamic libraries. I'm planning on using libloading for this.
Mods will be able to add new entities and ...
1
vote
2
answers
2k
views
What is a real purpose of dynamic linking in c++?
I'm new to this and don't understand why I should use dynamic linking when there is static linking.
I know that dynamic linking reduces the size of the program file, but if it is a custom dynamic ...
3
votes
2
answers
125
views
I want to release a C dynamic library for linux. At run time, will it be compatible with any linux version?
My little open-source C/C++ project also offers precompiled dynamic libraries to allow other languages to bind. For Windows I just provide x86 and x64 versions. For Macos, I propose an intel x64 ...
0
votes
0
answers
34
views
My cygwin gcc report conflicting types error when building dynamic link library using JNI
I was using cygwin gcc (7.4.0-x64) on windows to build dynamic link library for java.
Here reports the error:
H:\ddlog/java/ddlogapi.c:1057:28: error: conflicting types for '...
0
votes
1
answer
127
views
How to enter the source file of a dynamic lib (.so) when debugging
Recently, I want to add some breakpoints and debug some ROS libraries step by step to learn how these functions are called. These ROS libraries have been built from source.
However, I found that all ...
0
votes
1
answer
42
views
Could the JVM load a dynamic LIBRARY from network?if could be and how? THANKS
Could the JVM load a dynamic LIBRARY from network?if could be and how? THANKS
I am studying JNI recently.
I am working wiht mates, when other mates developing in theirs environment, they haven't the ....
2
votes
1
answer
439
views
XCode: specify different dylib paths for builds of different architectures
I'm trying to build a MacOS app for both x86_64 and arm64 architectures.
I'm also linking it with some .dylib libraries which I have in both architectures.
In XCode I figured that I can set the search ...
0
votes
1
answer
154
views
Accessing an external variable from a C library
I am currently learning C and am trying to understand the possibilities of dynamic libraries.
My current question is, if I have a simple "Hello World" application in C called "ProgA&...
1
vote
0
answers
2k
views
How to install libapt-pkg.so.5.0 on Ubuntu 20.04
I have a dynamic library that I want to use. However, one of its dependencies is not available on my system:
$ ldd redacted_name.so | grep 'not found'
libapt-pkg.so.5.0 => not found
I ...
0
votes
1
answer
541
views
Optional dynamic library
Background
Trying to profile an executable, I experimented the profiler Intel VTune and I learn that there is an API library (ITT) that provide utility to start/stop profiling. Its basic functions ...
0
votes
4
answers
210
views
Could not find the entrypoint _pcre2_compile@40. (3260)
I have built a libpcre2-8.dll with the help of this Git Repo.
I'm now trying to access the function pcre2_compile from an ABL (Progress) program. (Progress is an old 4GL Language). I'm constantly ...
0
votes
1
answer
1k
views
iOS App backed with cpp dyld crashes with error "missing symbol called"
I got an iOS App with following nested structure:
iOS App (swift + objC) {
iOS Framework (objC + C++) {
dynamic library (C++) {
static library (C++)
}
}
}
It links and compiles ...
0
votes
1
answer
360
views
Loading shared object to specific processes in Linux
I want to load a shared object to certain processes, there are certain conditions that are required:
Loading to only specific processes and not all of them;
It has to be done before the process code ...
0
votes
1
answer
557
views
gnuradio OOT module can't access shared object file while using gnuaradio companion (linux)
I've made an OOT module that uses a dynamic shared library.
The library files are located at "/home/username/intel/oneapi/ipp/2021.6.0/lib/intel64".
I've added to the module_folder/lib/...
2
votes
1
answer
2k
views
C++ Dependency injection with Dynamic library loading
I am unable to use C++ dependency injection library "boost::di" with another boost library for dynamic loading of libraries named "Boost.dll".
I broke down the problem into two ...
6
votes
1
answer
5k
views
pyenv: how to install python dynamic/shared library
When I compile python from source manually (with --enable-shared), I get a dynamic library in the lib directory. For example:
$ ls $PYTHON_INSTALLATION_DIRECTORY/lib
libpython3.9.so libpython3.9.so.1....