Questions tagged [dynamic-library]

Compiled binaries capable to be loaded in the process address space in runtime.

Dynamic Libraries are compiled binaries capable of being loaded/unloaded into/from the process address space at runtime.

In the Unix world, they are called shared libraies; in the Windows world, they are known as DLLs (dynamically-loadable libraries).

They can be loaded simultaneously into multiple processes, saving RAM and disk space.

Their file format is similar to, or even the same as, that of binary executables.

484 questions
0
votes
1 answer

Include a few .so files

I'm trying to use a few dynamic library I have written but gcc seems to be unable to find them and I'm not understanding why that is. The files libresistance.so, libcomponent.so and libpower.so are all located in /usr/lib the default location for…
Icy Creature
  • 1,875
  • 2
  • 28
  • 53
0
votes
1 answer

Static object not initialized on Mac OS X

//File A.h containing class A //DLL or dylib code. class A { //Class methods A () { count = 5; } //Append is running fine as it is tested A& Append (const A& a) { //Append operation. str = str + a.str; return *this; …
doptimusprime
  • 9,115
  • 6
  • 52
  • 90
0
votes
1 answer

undefined reference to symbol even when nm indicates that this symbol is present in the shared library 2

I found same question here but the answer doesn't help me. I'm writing test app to use nglib library. But when I try to compile it I get undefined references: $ g++ test1.cpp -L. -lnglib test1.cpp: In function ‘int…
tom
  • 1,520
  • 1
  • 12
  • 26
0
votes
1 answer

Duplicate instantiation of singleton

Working on a large project concerning C++ and Matlab cooperation through Mex we are currently struggling with one of our singletons. The class is being generated through macros during preprocessing so it may seem a bit odd. class AdditionalOperation…
giriel
  • 93
  • 12
0
votes
2 answers

Which libraries appear in /proc/$PID/pmaps?

On Linux you can inspect /proc/$PID/pmaps to see the libraries loaded by a particular program, and a program can open /proc/self/pmaps to examine the libraries it itself has loaded. I know pmaps will only contain dynamic libraries, and obviously the…
Joseph Garvin
  • 20,727
  • 18
  • 94
  • 165
0
votes
2 answers

Allowing dynamically loaded libraries in C to "publish" functions for use

I'm writing a program in C which allows users to implement custom "functions" to be run by an interpreter of sorts. I also want to allow users to write these custom functions in plain C, and then be loaded in dynamically. In order to do this, I…
Alexis King
  • 43,109
  • 15
  • 131
  • 205
0
votes
1 answer

Setting encode for qstring export result

How I can export from library function UTF8 encoded string? extern "C" __declspec(dllexport) QString Test() { QString tmp = "日本"; return tmp; }
Dmitro
  • 1,870
  • 3
  • 16
  • 25
0
votes
1 answer

boost python wrapper in dynamic library undefined reference

I'm currently trying to put part of a complex program into a dynamic library. This part consists of some classes that are also wrapped with boost python into a module to be embedded again. Here is a simplified version of the dll…
jean-claude91
  • 167
  • 1
  • 2
  • 10
0
votes
0 answers

Ogre dynamic link libraries

I am trying to dynamically link the ogre libraries. I was able to get past linking libraries for the samples except the sample browser. Here is the log.. Linking CXX shared library ../../lib/Sample_SSAO.so [100%] Built target Sample_SSAO Scanning…
0
votes
1 answer

Where does this directory in the error message point to?

I was running a program in Xcode, however the output generated is dyld: Library not loaded: /fserver/mo/engine_build/BUILD_mac_64/climp/LIBS/nag_lm/libnagc_nag.dylib Referenced from: …
Vokram
  • 2,097
  • 4
  • 19
  • 27
0
votes
1 answer

Running 64bit dylib with 32bit ruby on Mac

I was trying to install ruby-llvm. I could install llvm with brew install llvm -shared, and I also could install ruby-llvm with sudo gem install ruby-llvm command. However, when I tried to run the examples, I got these error…
prosseek
  • 182,215
  • 215
  • 566
  • 871
0
votes
1 answer

dynamically determining gcc version of any dynamic library built from C/C++ source

I have got a abc.so lib from somewhere, while using gcc4.4.3 I got error that this abc.so is incompatible type. Any idea how to find the version of this lib.
0
votes
1 answer

PHP 'Unable to load dynamic library... procedure not found'

This is my first day with Zend Framework with appServ and i used NetBeans IDE, but i got this error. PHP Startup: Unable to load dynamic library 'G:/PROGRA~2/AppServ\php5\ext\php_exif.dll' - The specified procedure could not be found. I am…
jmt
  • 223
  • 1
  • 8
  • 28
0
votes
1 answer

Can .dll's be automatically released with main executable?

Is there any way in Visual Studio or something else that allows the programmer to export the main executable with the dynamic libraries without the need to copy manually some important .dll's from system32 or somewhere else? For example, OpenGL…
andreihondrari
  • 5,743
  • 5
  • 30
  • 59
0
votes
1 answer

dynamic lib in linux default library path doesn't work

I have copied a executable file to another machine, i have copied its dependent library to "/lib" directory too, but when i run that file, it still cannot find that library. when i set LD_LIBRARY_PATH=/lib it works properly。 Is the directory…
Don Hall
  • 107
  • 1
  • 10