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
2 answers

How do I get dynamic libraries to load from the same directory in Ubuntu?

I have an executable which is dynamically linked to foo.so.0 and bar.so.0. The problem is that when I try to run the executable the loader cannot find the dynamically linked libraries. (The executable was linked to a static library which loaded the…
chacham15
  • 13,719
  • 26
  • 104
  • 207
0
votes
1 answer

Where is the dynamic library actually in the memory?

On linux platform, Could anyone tell me where is the dynamic library in the memory? I learned that the dynamic library are mmap to the process according to the GOT of this process, is that true? Thank you!
lllllllllllll
  • 8,519
  • 9
  • 45
  • 80
0
votes
1 answer

C++ Standard for dynamic Libraries on Windows and Linux

where can i find examples of how to create one basic c++ project that uses dynamic shared libraries on windows and linux? I need just of a simple example with one .cpp and .h file for the shared library and one for the program.
Emanuele Pavanello
  • 785
  • 1
  • 9
  • 22
0
votes
1 answer

libzip Windows compilation for libraries

I need libzip.lib .h to use libzip in other projects. So I followed libzip with Visual Studio 2010 and all is fine until step 11. In fact, I open C:\devel\libzip-0.10.1\build\libzip.sln, execute "Generate the solution" and I get the following errors…
SteveTJS
  • 635
  • 17
  • 32
0
votes
0 answers

PHP dynamic library error php_curl.so

I am trying to run the zf.sh (Zend tool) script to create a new Zend project but I get this error: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/php_curl.iso' - /usr/lib/php5/20090626/php_curl.iso: cannot open…
Kal
  • 2,239
  • 6
  • 36
  • 74
0
votes
0 answers

load dynamic library c++ for windows

I have to edit a c++ Linux code on a Windows platform. I'm using Visual Studio. This c++ code calls a jar to use JNI. The problem is that under Windows calling JNI is a bit more complicated than under Linux. So I have to load the jvm.dll in the…
user2764048
  • 121
  • 1
  • 2
  • 7
0
votes
1 answer

Can the dynamic library not ending with dylib?

I found in some framework bundle, the dynamic library not ending with dylib. I am wondering if dylib is required suffix for any dynamic library under IOS/Cocoa?
user496949
  • 83,087
  • 147
  • 309
  • 426
0
votes
2 answers

how to send js library to client dynamically?

I have a string variable that contains some JavaScript codes. I want to send these codes to client as a JavaScript file attached! just like: but this some.js file is not exist on the…
dph
  • 9
  • 1
  • 5
0
votes
1 answer

Static initializer of shared library inside dynamic library

So I have a static library (MacOS, .a library). It's written in C++ and has static initializers in it's code like that: //myclass.hpp class MyClass { ... static MyClass *defaultValue_; static MyClass *newInitialDefaultValue(); …
peetonn
  • 2,942
  • 4
  • 32
  • 49
0
votes
1 answer

Adding and Using Dynamic Libraries with Xcode

Ok. So here goes. I am currently trying to add and use a dynamic library called OpenCV into a Xcode project of mine. I first installed MacPorts using the .pkg. Then I opened Terminal and ran "sudo port install opencv". MacPorts then installed all…
yysh12
  • 1
  • 1
  • 5
0
votes
1 answer

Using Dynamic Libraries in QT Creator Project

I want to use the Ubunut/Linux Library libglfw (Glfw) with a Standard C++ Project, that uses CMake in Qt Creator. How do I do that? How do I have to include the Linked Library? Edit: Actually I Include the libglfw (/usr/lib/lglfw.so) like #include…
Tobi
  • 1,175
  • 1
  • 19
  • 44
0
votes
1 answer

rpm install in CentOS6 does not recognize dynamic library libc.so.6

I'm new to rpm and cannot find a way to get it to recognize .so files in /usr/lib, it cannot find libc.so.6 which is there. Is this related to the rpm build process or something I can perhaps modify. The man page did not have anything which appeared…
apollon
  • 95
  • 1
  • 2
  • 13
0
votes
1 answer

How can I link a dynamic library to a build at execution time?

I am on OS X, and I have a .so file which I want to link to a .o file during execution. For example Foo.so should be linked to Bar.o during while calling ./Bar.o . I am using the Terminal application to run my app and I compiled my project using a…
shaveenk
  • 1,983
  • 7
  • 25
  • 37
0
votes
1 answer

Compilation: including library: undefined reference to `vtable for class`

I'm trying to create a library with a source file and then use this library in my program. But linker throws error regarding vtable: Following is the code: product.h -------------------------------------------------------------- # ifndef…
mukeshkumar
  • 2,698
  • 3
  • 19
  • 20
0
votes
1 answer

What does static library and dynamic link library mean to WP8?

When reading about WP8 C++ project template, I see Windows Phone Empty Dynamic Link Library A project for creating a native dynamic-link library for a Windows Phone app. Windows Phone Empty Static Library A project for creating a native static…
onmyway133
  • 45,645
  • 31
  • 257
  • 263