Skip to main content
Filter by
Sorted by
Tagged with
Tooling
0 votes
0 replies
41 views

Is it possible to define the dynamic library location for an FFI at runtime? I have successfully generated an FFI for SFCGAL using toast in the nim programming context, but struggled a bit with the ...
huckfinn's user avatar
  • 697
1 vote
1 answer
161 views

On installing boost library (of which boost graph library is a part), the following has been installed on my computer: (1) C:\local\boost_1_86_0\boost\graph\header files.hpp (2) C:\local\boost_1_86_0\...
One_Cable5781's user avatar
0 votes
0 answers
111 views

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) ...
Mads M Pedersen's user avatar
1 vote
1 answer
121 views

Does Linux and/or Windows have a way to mark a dynamic library as optional, so that if it does exist, it is loaded and used to populate the symbol table, but if it does not, then the symbols are left ...
Dominik Kaszewski's user avatar
-1 votes
1 answer
111 views

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 ...
apilatosba's user avatar
0 votes
1 answer
67 views

I have one dynamic library with the function: extern "C" void start() { } And a second dynamic library with the function: extern "C" void start() { } Exactly the same. I open up ...
Zebrafish's user avatar
  • 16.5k
0 votes
1 answer
45 views

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 ...
Bilko's user avatar
  • 348
-2 votes
1 answer
187 views

In C++ it's a good idea to wrap any cleanup in the destructor of an object, and so my Vulkan objects look something like: struct MyVulkanObject { VkCommandPool handle; ~MyVulkanObject() ...
Zebrafish's user avatar
  • 16.5k
1 vote
0 answers
100 views

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 ...
Zebrafish's user avatar
  • 16.5k
1 vote
1 answer
134 views

This simple library $ cat foo.c int glob; int foo() { return 0; } __attribute__((constructor)) void init() { glob = foo(); } $ gcc -g -O0 -shared -fPIC foo.c -o libfoo.so loads fine when I ...
yugr's user avatar
  • 22.7k
0 votes
1 answer
533 views

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 ...
Anjana's user avatar
  • 1
0 votes
0 answers
74 views

A python C++ extension has the following structure: /myextension |_____basecode | |__header.h | |__functions.cpp | |_____utilities | |______utilities.h | |...
subhacom's user avatar
  • 919
0 votes
0 answers
48 views

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, ...
Xiaoyong Guo's user avatar
1 vote
1 answer
113 views

Say I have hello1.c char *greeting = "Hello, Version 1"; char *greet(void) { return greeting; } and hello2.c int greeting = 42; int greet(void) { return greeting; } My host.c looks ...
drets's user avatar
  • 2,825
0 votes
1 answer
159 views

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 ...
Quentin's user avatar
  • 79
0 votes
1 answer
384 views

I have application written on Flutter (Dart) and I have integrated FFI library. I need to call a method from that library on a separate Isolate but it gives me a following error: Unhandled Exception: ...
Kęstutis Ramulionis's user avatar
1 vote
1 answer
299 views

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 ...
1ups_'s user avatar
  • 47
0 votes
2 answers
375 views

I've been trying to run a Scala project that uses the library OpenCV. I am using maven to build the project and in the pom.xml file I have the following dependency: <dependency> <groupId&...
kryozen's user avatar
  • 30
0 votes
1 answer
148 views

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 ...
Droid's user avatar
  • 1
2 votes
1 answer
239 views

What does C++ standard say about dynamic libraries? I heard that it completely ignores them (for some reason) - if it's true, why so?
blonded04's user avatar
  • 531
1 vote
0 answers
166 views

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 ...
64_Tesseract's user avatar
0 votes
1 answer
218 views

I was building a shared/dynamic library by using bazel. The rules in Build file are like below cc_library( name = "a", srcs = ["a.cc"] ) filegroup( name = "vis_ld&...
James's user avatar
  • 45
1 vote
2 answers
2k views

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 ...
tomeadom's user avatar
0 votes
0 answers
62 views

On Windows 10, using eclipse for c projects I have installed the MinGW compiler. I've been able to add a static library (*.h, *.c files). I can't for some reason get a shared library to work. I ...
DCR's user avatar
  • 15.8k
3 votes
2 answers
126 views

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 ...
tinyfiledialogs's user avatar
-1 votes
1 answer
1k views

I'm trying to create a simple library using cmake and create an app that uses it. However, while creating an app, I must specify the path to the header file used in the library for the build to ...
masagu's user avatar
  • 1
0 votes
0 answers
39 views

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 '...
reason liu's user avatar
1 vote
0 answers
75 views

I have written a pam module using Golang and C, similar to https://github.com/uber/pam-ussh. I am noticing an issue with the signal handler of Golang even though my PAM module is never called to ...
KeepAsking's user avatar
0 votes
1 answer
130 views

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 ...
KKKmelody's user avatar
  • 151
0 votes
0 answers
190 views

How can I Import a *.so file into a *.jar while using Maven build tools? And could load that *.so file? considering convenience of the deployment usage. I want to load native methods from *.so then ...
豆沙饼's user avatar
0 votes
1 answer
42 views

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 ....
豆沙饼's user avatar
0 votes
0 answers
232 views

In the recent Penetration test of our iOS app we found a vulnerability that {appName}.app/Frameworks/libswiftCoreImage.dylib does not enforce automatic reference counting protection.How to enable the ...
Bhargav Sai's user avatar
2 votes
1 answer
450 views

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 ...
Soid's user avatar
  • 2,908
-1 votes
1 answer
983 views

When you build an app, You have to compile and then link. Whether you link a framework dynamically or statically, you still have to compile them both. It’s just that for a static library, you link at ...
mfaani's user avatar
  • 37.1k
0 votes
1 answer
154 views

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&...
user5864789's user avatar
0 votes
2 answers
1k views

I have a project that depends on Intel's oneTBB. My project is structured as follows: external/ | - CMakeLists.txt | - oneTBB/ (this is a git submodule) | - ... include/ lib/ include/ ...
Chris Gnam's user avatar
1 vote
0 answers
2k views

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 ...
Shane Bishop's user avatar
  • 5,092
4 votes
2 answers
3k views

I am writing a generic library in GoLang and want to publish it (like a dynamic library) to be used by other apps written in any language. If I write this lib in C/C++, I would have generated a .dll ...
RGC's user avatar
  • 382
0 votes
1 answer
555 views

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 ...
rafoo's user avatar
  • 1,708
0 votes
0 answers
865 views

So I am building a tiny "game engine" in C++, using cmake to build it, and I am making it as a static library. In windows it works perfectly, but in linux I need to link X11. Now this wouldn'...
Tudor Szabo's user avatar
0 votes
4 answers
215 views

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 ...
Lieven Cardoen's user avatar
2 votes
1 answer
359 views

Assume a dynamic library exports a function, e.g. of type void(), named foo. A client code could then make use of it like in the following snippet (assuming foo is exposed via extern "C" ...
Enlico's user avatar
  • 30.3k
0 votes
1 answer
1k views

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 ...
Andrey Lyubimov's user avatar
0 votes
1 answer
422 views

Take a C application running on Linux for example which is dynamically linked with a required shared library. I know that the .so file should be found in the paths defined in the environment variable ...
Engineer999's user avatar
  • 4,159
0 votes
1 answer
366 views

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 ...
ALsec's user avatar
  • 11
0 votes
1 answer
744 views

I'm writing a small study project in C. I need to create a dynamic library and configure its use with macros. First, I create object files with the command: $gcc -fPIC -c ../data_module/data_process.c ...
e7min's user avatar
  • 41
0 votes
1 answer
564 views

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/...
Yudugur's user avatar
0 votes
1 answer
1k views

I am trying to import a c++ function for use in Python(3.9) on MacOS. My project has the following structure, . ├── CMakeLists.txt ├── cmake-build-debug │   ├── CMakeCache.txt │   ├── CMakeFiles │   ├─...
Kyle 's user avatar
  • 145
2 votes
1 answer
2k views

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 ...
Sukhdeep Singh's user avatar
0 votes
0 answers
136 views

When using libQuickMail in the shared object, the application crashes when loading from that so. Say I have two programs: program 1 is a program that loads a shared object. We'll call this program &...
0XPW87's user avatar
  • 11

1
2 3 4 5
10