Questions tagged [dynamic-linking]

Dynamic linking is a system which allows libraries to remain separate from programs until loaded, contrast static linking.

1607 questions
0
votes
1 answer

Poco based binary cannot find library during runtime

I have written a small HTTPServer application using Poco and I get the following error during runtime: factoryProject> ./httpServer ./httpServer: error while loading shared libraries: libPocoNet.so.16: cannot open shared object file: No such …
Jake88
  • 955
  • 1
  • 19
  • 39
0
votes
1 answer

How do I use a shared dynamic library in c++ project?

I am running 64bit Linux and using Netbeans 8.0 IDE. I simply created new C++ project, so far only containing some HelloWorld code. I want to use a third party library for logging. I chose log4cpp (since I have experience with Java and it is…
thegeko
  • 1,382
  • 1
  • 13
  • 18
0
votes
0 answers

Dynamic and static linking in iOS app?

i'm trying to use static libs (.a) in my project. I've added "lib*.a" in "frameworks" and added liker flags "-ObjC". lib*.a are compiled for i386 to be run in iOS simulator. Though the app was build without error it can't be launched in iOS…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
0
votes
1 answer

toquelib behaves different with static and dynamic linking

This is puzzling me... I have a code that looks like this: #include #include int doSomeStuff() { char *server_name; int c; server_name = pbs_default(); c = pbs_connect(server_name); printf("pbs_errno…
Raul Kist
  • 331
  • 3
  • 8
0
votes
1 answer

NDK - How to get "undefined reference" during compile-time?

I am using the standalone toolchain to produce my .so and when I link my .o files to it, I get no "undefined reference" errors because it is creating dependencies that are resolved during runtime. I would like to resolve all the symbols during the…
0
votes
1 answer

Could position independent code save memory space?

In my understanding, the Position-independent code can save disk space because it will not load library in the compiling time and can reduce startup cost because it will load the lib code only when need them to run. Therefore, as every process using…
0
votes
2 answers

Generate url only when anchor is clicked

Is it possible to assign url to the an anchor only when it got clicked? Token Link When the anchor got clicked, it will go to http://example.com/token=xxxxx/ I want to generate token only when it got clicked. If…
Wayne
  • 763
  • 4
  • 21
  • 43
0
votes
1 answer

GDB "cannot open shared object file" Issue

I've already read gdb says "cannot open shared object file" and gdb can not open shared object file and followed the instructions. I have a binary which is linked to a shared library file (/zzz/yyy/xxx.so). After I set LD_LIBRARY_PATH to /zzz/yyy/…
stanleyli
  • 1,427
  • 1
  • 11
  • 28
0
votes
1 answer

Updating dynamically linked .so file within .so file and statically linked .a file within .so file

I have a .so file called abc.so If I type: ldd abc.so libssl.so.10 => /usr/lib64/libssl.so.10 (0x00007f76f9100000) If I type: ls -l /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.10 -> libssl.so.1.0.1e Why is it linking to libssl.so.10 instead of…
0
votes
1 answer

Dynamically linking SQLCipher on OS X with C++

I originally wanted to compile SQLCipher statically since it seems like it is easier to link up, but I have been unsuccessful at that. The only place I can find that discusses compiling SQLCipher on OS X is this blog post, but even he was not able…
MCH
  • 2,124
  • 1
  • 19
  • 34
0
votes
1 answer

Native code deployment on iOS

IIRC runtime compilation and linkage to JIT-ed native code is not allowed on iOS. I was wondering does it affect native code that was not compiled on the client machine but a remote build server and deployed and linked to internally. Is the problem…
user2341104
0
votes
0 answers

trying to link to two shared libraries that resolve the same symbol in a way that if one lib is unreachable the other is used

Im writing a C application in Linux. It uses libncurses to display data on terminal screen. I want to use libncursesw which is the wide character supported version of ncurses. it resolves the same symbols as libncurses. Not all linux machines have…
Yair Karmy
  • 31
  • 5
0
votes
1 answer

Dynamic linking: is it possible to disable automatic loading of non used shared objects?

I have a limited knowledge of dynamic libraries and I usually have problems related to libraries that I do not understand. I recently learned of libraries from google search and especially from the following links: Difference between shared objects…
innoSPG
  • 4,588
  • 1
  • 29
  • 42
0
votes
2 answers

Is it possible to set the compiling and linking flags in Makefile.am instead of configure.ac?

Is it possibleto set such flags in Makefile.am instead? That will solve the problem I asked at https://stackoverflow.com/questions/22617744/how-to-disable-the-runtime-checking-of-dynamic-libraries-if-they-are-not-used.
innoSPG
  • 4,588
  • 1
  • 29
  • 42
0
votes
1 answer

How do I stop a library from being linked, when the function that relies on it, is not being called?

first I'll create a small program: #include void function() { //mpf_class num; return; } int main() {} Notice, that I am including a 3rd party library, but not using any of its contents. I go to compile the program: $ g++…
Trevor Hickey
  • 36,288
  • 32
  • 162
  • 271
1 2 3
99
100