dynamic-linking Questions

4

Solved

Linking.removeEventListener('url', onReceiveURL); removeEventListener is deprecated. This is what my IDE suggests : EventEmitter.removeListener('url', ...): Method has been deprecated. Please in...

1

Solved

Consider the following two files on a Linux system: use_message.cpp #include <iostream> extern const char* message; void print_message(); int main() { std::cout << message << '...
Denunciation asked 19/2 at 21:42

6

Solved

I'm trying to write a simple shared library that would log malloc calls to stderr (a sort of 'mtrace' if you will). However, this is not working. Here's what I do: /* mtrace.c */ #include <dlf...
Ninety asked 21/5, 2011 at 16:3

20

Solved

When creating a class library in C++, you can choose between dynamic (.dll, .so) and static (.lib, .a) libraries. What is the difference between them and when is it appropriate to use which?

3

Solved

I am currently trying to use C++11 multithreading in a shared library that is loaded into the main program (written in C) on Linux. This is part of a big simulation program and I cannot change an...

1

The way PLT usage is specified in the SystemV ABI (and implemented in practice), is schematically somtehing like this: # A call from somewhere in code is into a PLT slot # (In reality not a direct ...
Tucker asked 27/8, 2023 at 13:27

9

Solved

I'm looking for a way to load generated object code directly from memory. I understand that if I write it to a file, I can call dlopen to dynamically load its symbols and link them. However, this ...
Hog asked 19/2, 2011 at 21:30

3

Scenario: Executable loads shared object at run time via dlopen. The shared object references some symbol (a function) that is actually compiled into the main executable. This works fine if I ad...
Mcdevitt asked 10/5, 2016 at 15:3

6

Solved

How can you link GLEW to a project with CMake? We've been trying to link GLEW to our project using CMake for at least 3 hours without any success so any help is accepted. I'm using the FindGLEW....
Kao asked 14/12, 2014 at 18:52

3

Solved

I have a shared library that I'd like to dynamically link into several separate binary Cargo applications. I include its location in the linker using the -- -L /path/to/dir format and the applicati...
Postmeridian asked 15/11, 2016 at 5:33

2

Solved

I feel weird about difference between advantage of dynamic linking library in Window or Linux and iOS. ⬇️ sentences below are to prove why I feel weird. I learned that library can divided into stat...
Scintillate asked 21/4, 2021 at 8:38

3

I have an older binary executable (utserver, closed source) that I'm trying to run on a system running Fedora 22. utserver wants openssl_1.0.0 - F22 provides openssl_1.0.1k I made two symlinks: ...
Keek asked 18/9, 2015 at 4:58

5

Solved

I've always wondered. I know that compilers convert the code you write into binaries but what do linkers do? They've always been a mystery to me. I roughly understand what 'linking' is. It is whe...
Dominga asked 23/7, 2010 at 22:44

9

Solved

I was installing a binary Linux application on Ubuntu 9.10 x86_64. The app shipped with an old version of gzip (1.2.4), that was compiled for a much older kernel: $ file gzip gzip: ELF 32-b...
Solicitude asked 26/4, 2010 at 20:40

2

Solved

This is mostly out of curiosity. I understand that definitions for library functions can be replaced (?) if I LD_PRELOAD my own library with my own definition for the library function. Can I do the...
Romanaromanas asked 12/9, 2014 at 15:51

3

Solved

I have a project which compiles c++ generated protobuf serializers into a static library. An executable links against this library, and an .so (.dll) does too. The executable later loads the .so fi...
Nagpur asked 8/10, 2015 at 14:0

1

Iam trying to load a c++ dll in JS using node-ffi. When the dll does not have any external dependencies, it works fine as expected. But it crashes, when it has any external dependencies. const ffi ...
Kreitman asked 5/11, 2020 at 12:2

3

Solved

I have installed another version of GLIBC and want to compile Golang code against this new GLIBC. I have tried the following command for dynamic compilation: go build --ldflags '-linkmode externa...
Birdella asked 1/4, 2019 at 7:31

4

Solved

I'm setting up my Android app to support email authentication and as part of the task I need to create a dynamic link, which I did in the Firebase console. However, when I tested the link (https://...
Curious asked 20/9, 2019 at 11:50

3

Solved

I'm trying to understand what happens when modules with globals and static variables are dynamically linked to an application. By modules, I mean each project in a solution (I work a lot with visu...
Wreak asked 15/10, 2013 at 3:58

3

Since the dynamically linked libraries have to be resolved at run-time, are statically linked executables faster than dynamically linked executables?
Alansen asked 12/1, 2011 at 10:49

1

Solved

I'm trying to better understand runtime relocations in Linux, specifically who performs them in different situations. Below is my current understanding, is it accurate? Position-dependent statical...
Inexperience asked 7/10, 2021 at 13:10

2

Solved

I've been trying to get a better grasp of how shared libraries work but I just can't rap my head around two things. 1- Each process has its own virtual memory space and page table, so If a shared l...

3

Solved

I have a question about library linking and .lib files... this is the context: OS = Windows IDE = QT I have created a DLL: MyLib.dll. To use that library in my QT project, I only have to inclu...
Undercroft asked 26/11, 2013 at 11:41

5

Solved

I am attempting to use Firebase to pass deep links into my app that survive install. To test this I am following the steps provided by the Firebase documentation and Firecast video here at about t...

© 2022 - 2024 — McMap. All rights reserved.