dynamic-linking Questions

2

Solved

I'm trying to profile app startup after moving from static libraries to frameworks. We have 30 or so frameworks (fyi: cocoapods) so I want to check that it's not affecting performance. Anecdotal te...
Suffering asked 18/11, 2015 at 9:52

0

I am aiming at downloading code (library / framework / bundle) when the app is running. This is like download specific modules based on user's ACL. I have gone through creating static library and ...
Shouse asked 4/2, 2016 at 13:39

3

Solved

There is a DLL, that is loaded by the main (desktop) application dynamically via Windows.LoadLibrary. That's because there are plenty of similar DLLs and only few to single of them are required to ...
Pickpocket asked 19/1, 2016 at 16:36

1

Solved

I have a dummy.hpp #ifndef DUMMY #define DUMMY void dummy(); #endif and a dummy.cpp #include <iostream> void dummy() { std::cerr << "dummy" << std::endl; } and a main.cpp ...
Intercommunicate asked 24/12, 2015 at 14:35

1

Solved

Probably the shortest working example I can think of: CMakeLists.txt: project(myprogs) cmake_minimum_required(VERSION 2.8) add_executable(myprog2 main.c) add_executable(myprog main.cpp) add_libr...
Vierno asked 22/12, 2015 at 3:43

3

Solved

I was following a tutorial video on compilers on YouTube, when I came across the fact that the C Programming Language is faster because it allows both static linking and dynamic linking, but Java a...

2

Solved

I am trying to gather as much information as I can about an apparent infinite loop issue seen when using Valgrind 3.11.0 on Mac OS 10.11.1 'El Capitan'. When I run valgrind on my program in LLDB o...
Groh asked 30/11, 2015 at 17:1

3

Solved

Here is a Hello World code in C: // a.c #include <stdio.h> int main() { printf("Hello world\n"); return 0; } I compile it as gcc a.c, which produces a.out as expected and ./a.out prints...
Informality asked 28/11, 2015 at 10:16

2

Solved

Edit: I resolved this issue, the solution is below. I am building a code in a shared computing cluster dedicated for scientific computing, thus I can only control files in my home folder. Although...
Form asked 4/11, 2015 at 10:37

2

Solved

I am editing paths on some binaries short of recompiling them. I want to replace /lib/ld-linux-armhf.so.3, which I cannot create, by a path of same length, that I can create without rooting the ph...
Corrincorrina asked 8/12, 2013 at 22:12

2

Solved

I'm using Django, and when I run python manage.py runserver I receive the following error: ImproperlyConfigured: Error loading MySQLdb module: dlopen(/Library/Python/2.7/site-packages/_mysql.so, ...
Dewey asked 10/7, 2015 at 14:26

5

Solved

I often hear the terms 'statically linked' and 'dynamically linked', often in reference to code written in C, C++ or C#. What are they, what exactly are they talking about, and what are they linkin...
Boondoggle asked 22/11, 2008 at 23:9

3

Solved

I have a system "fsimage.so" that requires mkdirp, which just happens to live in libgen.so. But fsimage.so does not know this. For example: # ldd /usr/lib/python2.4/vendor-packages/fsimage.so lib...
Metz asked 19/11, 2010 at 3:37

1

I have an executable project which uses a shared library, that includes a static library. Then from the executable, I try to load another shared library with dlopen. That library is found but it ca...
Bela asked 18/9, 2015 at 10:6

1

My project architecture is, a workspace which has two projects(Project A & Project B). Project A has three more sub projects(Project X , Project Y, Project Z). Workspace Project A Project...
Militant asked 21/8, 2015 at 16:29

2

Solved

I'm having two problems related to the same issue: I have a shared object saved in `pwd`/lib and while the executable that uses it compiles successfully (by using -l and -L switches), at runtime,...

3

Solved

I have the need to dynamically link against a library at run-time and resolve a series of functions using dlsym. My first thought was to use an array of function pointers that can be easily iterate...
Harmaning asked 17/7, 2015 at 18:43

4

Have next kind of question. Wanna to rebuild garbage collector (gc-7.1-10.el6.src.rpm) and exclude ld-linux.so.2, ld-linux.so.2(GLIBC_2.3) & libpthread.so.0(GLIBC_2.3.2) dependencies. How can I...
Cloy asked 10/10, 2011 at 16:39

2

Solved

I am trying to build a unit test using Boost's unit test framework. I would like to dynamically link test suite libraries with the auto generated test module that Boost provides. Here is the basic ...

3

Solved

I used readelf --dyn-sym my_elf_binary | grep FUNC | grep UND to display the dynamically imported functions of my_elf_binary, from the dynamic symbol table in the .dynsym section to be precise. ...
Subsolar asked 15/5, 2015 at 16:43

1

Solved

I'm observing different linking behaviour between two machines when compiling a binary. Each has the same GHC (7.8.3), same code, same flags (-Wall -O2), same libgmp (installed by Homebrew on each...
Magistrate asked 5/12, 2014 at 19:52

2

I have two dynamically loadable libraries lib_smtp.so and and libpop.so etc. Both have a global variable named protocol which is initialized to "SMTP" and "POP" respectively. I have another static ...
Emf asked 6/5, 2015 at 14:59

1

Solved

I know that the dynamic linker uses mmap() to load libraries. I guess it is the kernel who loads both the executable and its .interpreter into the same address space, but how does it determine wher...
Coggins asked 24/4, 2015 at 19:38

3

Solved

I have a libA.so that depends on libB.so, which is located at ../libB/ (from libA.c). I'm trying to compile things in such a way that I don't have to set any environment variables. I have: cc -st...
Threeply asked 2/4, 2015 at 21:15

1

Solved

The problem is, I've found out that Mac OS X has an dyld (as I understood a dynamic linker) but also a simple linker ld (as I understood a static one). The question is: Is it really so ? Two linke...
Langue asked 29/3, 2015 at 21:53

© 2022 - 2024 — McMap. All rights reserved.