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
2
votes
1 answer

VS2017 doesn't copy Additional Include Directories to remote env (linux) causing compilation error

I'm playing with Visual-Studio 2017 c++ cross platform projects (linux). I was able to compile and run a single executable project. Now I've created two c++ projects. One is a static library, the other is a dynamic library. The dynamic library uses…
2
votes
1 answer

How to package statically loaded JNI libraries?

I've currently got a Java application that is dynamically loading in a native library on two different platforms, Windows and Linux. I have the same library built targeting these two systems, a library.dll and a liblibrary.so. I've got to send this…
2
votes
0 answers

error while loading shared libraries - Qt pro file setting

By following this link, Cant use shared libraries in Qt project, I add libkmlbase and libkmldom libraries in Qt project pro file LIBS += -L"/usr/local/lib/" \ -lkmlbase\ -lkmldom\ those libraries are installed in /usr/local/lib However,…
willSapgreen
  • 1,365
  • 2
  • 17
  • 27
2
votes
1 answer

Solidity: change a the value of a variable in a smart contract already published

I'm trying to change the value of a variable in a contract that is in the blockchain. I've deducted its code and is something like this: pragma solidity ^0.4.8; contract Trial { address public owner; address public person; uint…
Pietro
  • 33
  • 1
  • 9
2
votes
1 answer

Linux library calls ambiguously named function in executable - is this possible?

I have a problem with an embedded linux C++ application I've written that consists of an executable and a dynamically linked library. The executable calls a function that is one of the entry points in the library, but that function misbehaves. I've…
Spalteer
  • 454
  • 4
  • 11
2
votes
0 answers

How do I fix dynamic library's issue?

everytime I use the composer to generate the database or to create a new symfony project, this warning shows up , > PHP Warning: PHP Startup: Unable to load dynamic library > 'C:\xampp\php\ext\php_apcu.dll' - n'est pas une application Win32 >…
Omis Brown
  • 199
  • 2
  • 16
2
votes
1 answer

undefined reference when linking dynamic library in Ubuntu system

i have written such a code in my Ubuntu system: my.h #include int a; int set(void); lib.c #include "my.h" int set(void) { a = 100; return 0; } main.c #include "my.h" int main(void){ set(); printf("a = %d\n", a); return…
pakade
  • 75
  • 1
  • 7
2
votes
0 answers

"header not found" as I import public header from private header

I am developing a dynamic framework in Objective-C that has public and private headers. Due to some reasons, I do NOT use modular import directives (e.g: #import ) instead, I use non-modular import directives (e.g:…
Mert Buran
  • 2,989
  • 2
  • 22
  • 34
2
votes
1 answer

Friend definition doesn't work with gcc4.9

I need to create a dynamic library: mylib.h class FriendClass; namespace my_namespace { class MyLib { friend class FriendClass; public: MyLib(); /* public functions */ private: void function_for_friend_class(); }; } //…
user1289
  • 1,251
  • 2
  • 13
  • 25
2
votes
0 answers

Dynamic framework with cocoa pods library dependencies incorrect path

I made a framework which is partially written in Swift and partially in Objective C (the models only are written in Objective C). The library is dependent on Alamofire and JSONModel. I managed to make it available for cocoa pods users and…
Fawkes
  • 3,831
  • 3
  • 22
  • 37
2
votes
1 answer

dlopen returns NULL after app kill

I'm using dlsym to load private APIs (required on iOS 9.3) : handle = dlopen(CORETELPATH, RTLD_LAZY); _CTServerConnectionCreate = dlsym(handle, "_CTServerConnectionCreate"); When I kill the app (swipe from bottom on multitask mode) and restart app,…
SlumTheSlug
  • 115
  • 13
2
votes
1 answer

Both static variables and global variables show different addresses in dynamic library and static library on Linux?

I have encountered on CentOS 6.5. As I have searched online that static variable behaves differently on Windows and on Linux when using dynamic library. That is, Windows would cause duplication of variables and Linux would not, like this…
Zhao Yunjian
  • 137
  • 9
2
votes
2 answers

Can we link a dynamic C library statically?

We know that when linking a static library, the linker copies the relevant code from .a file to the executable binary file. And when linking a dynamic library, the linker just copies the addresses of functions it found in .lib file (under Windows)…
yvbbrjdr
  • 83
  • 5
2
votes
3 answers

I use os.system to run executable file, but it need a .so file, it can't find library

When I call a executable in python using os.system("./mydemo") in Ubuntu, it can't find the .so file (libmsc.so) needed for mydemo. I used os.system("export LD_LIBRARY_PATH=pwd:$LD_LIBRARY_PATH;"), but it still can't find libmsc.so. The libmsc.so is…
legend0011
  • 139
  • 7
2
votes
1 answer

How to use opencv in Unity3d?

I installed unity3D. I created a basic AR sample on it. I want to use opencv on unity3d. To do,there are some ways. I want to use opencvsharp. I install opencvsharp2.4.10 because I have installed opencv2.4.10. I don't know next step? How I can…
zakjma
  • 2,030
  • 12
  • 40
  • 81