dynamic-linking Questions
2
Solved
I have 2 libraries: test.1 and test.2. Both libraries contain a single global extern "C" void f(); function, with different implementations (just a cout for the test).
I did the following test:
T...
Flexor asked 16/3, 2015 at 14:46
1
Solved
My CMakeFiles.txt looks like this:
cmake_minimum_required ( VERSION 2.6 )
# Set warnings on and enable debugging
SET( CMAKE_C_FLAGS "-Wall -q" )
include(FindBoost)
set(Boost_USE_STATIC_LIBS ON)...
Walli asked 5/3, 2015 at 21:4
2
In Objective-C, if I wanted to use a specific class that's only present in a new version of iOS, I would do something like this:
if( [UIBlurEffect class] ) {
// do something with UIBlurEffect
}
e...
Carcinogen asked 6/7, 2014 at 1:32
1
Solved
I'm trying to build a DLL using Visual Studio 12 Community that depends on OpenCV.
I want to include OpenCV as .lib files so I don't have to distribute it seperately, but I need my file to be buil...
Irons asked 23/12, 2014 at 18:29
1
Solved
I have a CMake multiple definition linking problem with an executable that depends on a shared library that contains a static library.
I create a shared library foo that depends on a static librar...
Webbed asked 15/12, 2014 at 18:15
2
Solved
I'm working on a heap profiler for Linux, called heaptrack. Currently, I rely on LD_PRELOAD to overload various (de-)allocation functions, and that works extremely well.
Now I would like to extend...
Timbrel asked 25/11, 2014 at 21:58
2
Solved
BACKGROUND:
If an executable file has a external data reference, which is defined in a shared object, the compiler will use copy relocation and place a copy in its .bss section.
Copy relocation is ...
Phonologist asked 11/11, 2014 at 10:46
1
Solved
This question is closely related to dlopen a dynamic library from a static library linux C++, but contains a further complication (and uses C++ instead of C):
I have an application that links aga...
Gruver asked 29/9, 2014 at 8:18
1
Solved
Analyzing this question I found out some things about behavior of weak symbol resolution in the context of dynamic loading (dlopen) on Linux. Now I'm looking for the specifications governing this.
...
Kearns asked 18/12, 2013 at 12:53
2
Solved
I have the very simple CMakeLists.txt
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
FIND_PACKAGE(VTK REQUIRED)
PROJECT(test CXX)
that really doesn't do anything. The package VTK is correctly found under /...
Olfe asked 4/9, 2012 at 13:15
2
Solved
I have a makefile project in which I include a few different libraries. One of them is the boost library which I statically link in order to make my program portable. This is how my makefile comman...
Doge asked 9/9, 2014 at 12:1
1
This is the first time I am asking on stackoverflow and I am desperate.
My task is to load a dylib or join a static lib to an already existing executable for an IOS device.
I will be using the st...
Metencephalon asked 13/6, 2012 at 15:19
3
Solved
If you have a very basic C++ program that only uses the 'cout' object, you can include iostream in the source file and then when you compile it you don't have to link any external libraries. In oth...
Picardi asked 30/7, 2014 at 12:9
1
I'm having troubles with compiling a standalone library for use by Java (with C++ inbetween).
There is a program in Haskell exporting one function that processes some text and returns it.
The progr...
Homeomorphism asked 22/5, 2014 at 7:27
1
Solved
I want use function 'dlopen()' to invoke a dynamic library on iOS platform, is the function 'dlopen()' private API?
Amblyoscope asked 30/6, 2011 at 6:19
1
What I do
When writing shared libraries for Linux, I tend to pay attention to relocations, symbol visibility, GOT/PLT etc.
When applicable, I am trying to avoid calling PLT stubs when functions f...
Oppen asked 15/8, 2013 at 19:27
2
Solved
Is it possible to compile (C++) code for the GPU with nvcc into a shared object (.so file) and load it dynamically from a C++ program (in this case, Cern's ROOT, which is essentially a C++ interpre...
Loraine asked 22/5, 2014 at 13:14
1
Solved
I'd like to use libdl to dynamically load C++ in general. The problem is identifying symbols at runtime that have been name mangled.
As described here, one solution is to remove name mangling by u...
Lianaliane asked 6/6, 2014 at 18:30
1
Solved
I'm having troubles with linking freetype 2 under linux using cmake when building a C++11 project with an extern C library.
With cmake and freetype 2 I basically have 2 options :
use the utility...
Pectin asked 27/5, 2014 at 11:30
0
I have a quick question in the hope someone knows if what I'm trying is possible at all.
Assume I have a template base class like this
template <class T>
class CBase
{
public:
CBase() {}
...
Molality asked 24/4, 2014 at 11:51
9
Solved
How does dynamic linking work generally?
On Windows (LoadLibrary), you need a .dll to call at runtime, but at link time, you need to provide a corresponding .lib file or the program won't link......
Mopboard asked 4/4, 2014 at 10:44
2
Solved
In Linux, for shared libraries, I usually see .so, .so.1 and .so.1.0 files of one library. For example, library test should be presented by libtest.so libtest.so.1 libtest.so.1.0 files.
As my under...
Ceruse asked 7/3, 2014 at 18:2
3
Solved
I want to execute functions in a module, this module will have dependencies resolved in other modules. the modules might change (dynamic compilation environment) so i would prefer not not link all ...
Letourneau asked 4/6, 2012 at 16:2
3
Solved
This page says about order for library search in ld.so:
Unless loading object has RUNPATH:
RPATH of the loading object,
then the RPATH of its loader (unless it has a RUNPATH), ...,
until the en...
Botnick asked 1/11, 2011 at 14:18
1
So, I'm trying to use the Plugins package to dynamically load a haskell function from a source file. The source file depends on a package foo with module Foo.Bar. I'm running my project in a Cabal ...
Whoa asked 21/1, 2014 at 4:58
© 2022 - 2024 — McMap. All rights reserved.