dynamic-linking Questions

4

Solved

Is there an open source program for Windows that offers the same functionality as Linux' /lib/ld‑linux.so.2?
Metamerism asked 17/8, 2011 at 14:42

2

Solved

I understand the benefits of dynamic linking (old code can take advantage of library upgrades automatically, it's more space efficient), but it definitely has downsides, especially in the heterogen...

2

I have a simple mex function, which calls another C++ function from a library. I compile the source with mex -cxx mymexfunction.cpp -I/some/include -L/some/lib -lmylib The mylib library is dynam...
Starve asked 10/8, 2011 at 14:27

2

Solved

I have a .NET application which I wish to search other paths for dependent DLLs besides the standard GAC, current directory, PATH areas. Is it possible to tell the app to do this? E.g. Tell the A...
Shading asked 26/7, 2011 at 21:6

2

I am wondering if it is possible to link a c++ program compiled with gcc4.2 with a shared c++ library that is compiled in a later version like gcc4.5. I've tried to do this, but have run into som...
Redcoat asked 4/7, 2011 at 20:28

2

Solved

Operating system is MacOS X, specifically 10.5 (Leopard) on a PowerPC G4, but I have the same problem on an x86 running 10.6. I am writing an application which dynamically loads a DLL. The DLL (le...
Persephone asked 22/3, 2011 at 23:12

2

Solved

I am trying to write a QuickLook generator. For this, I need to link against a framework I created. However, as soon as I link against said framework, qlmanage refuses to load my plugin by telling ...
Seraphina asked 21/4, 2011 at 21:35

3

Solved

I have written a custom library which implements malloc/calloc/realloc/free using the standard C prototypes, and I figured out how to compile it to an so. I want to test the library by linking a st...
Fleur asked 28/4, 2011 at 17:40

1

Solved

I have a project where I have one static library libhelper.a and another with my actual shared object library, libtestlib.so. My goal is to link libhelper.a into libtestlib.so. Is that possible on ...

3

Solved

How are virtual functions implemented in position-independent code? I know that if my class has virtual functions, the compiler usually generates a vtable for it that contains addresses of all vir...
Infrequency asked 21/3, 2011 at 12:21

8

Solved

Introduction As a disclaimer, I'v read Why can't static methods be abstract in Java and, even if I respectfully disagree with the accepted answer about a "logical contradiction", I don't want ...
Ineludible asked 5/3, 2011 at 12:27

3

Solved

I made my own implementation of _init , malloc , free ( and others ). Inside these functions I use the dlfcn.h (dlopen , dlsym etc) library to call the actual standard versions. I put then in a s...
Tutankhamen asked 7/3, 2011 at 19:5

1

Solved

1. Why do we need to link the non standard libraries/include non standard header files when they are already present in the right folder anirudh@anirudh-Aspire-5920:~/Documents/DUMP$ locate libpth...
Mutualize asked 6/3, 2011 at 7:15

7

Solved

I'm looking to "hot plug" a library of C++ code. I'm interested in having this technique work cross platform between Linux/Mac/Windows. Basically I want to have the main program #include "StateMach...
Engird asked 23/6, 2010 at 16:45

0

I know that I can use the -change option of install_name_tool to change the name of a dependent shared library stored in a dylib, but is there a way to remove a dependent shared library, which I be...

4

Solved

In my application I have 3 major parts: Exe : an executable file Lib_A : a library contains a singleton class and a base class for some calculations to be use in singleton class Lib_B : a libra...
Finned asked 16/1, 2011 at 20:54

4

Solved

I never put much thought into the size difference between a static library and a dynamic library until I downloaded pre-built libraries of boost today. I found that the static libraries of boost ar...

1

Solved

I'm building a library that needs to be dynamically linked to my project. The output is a .so file, so I think I'm on the right track. I'm concerned by the way it's being linked at compile time - b...
Cosecant asked 13/12, 2010 at 15:52

2

Solved

Most applications (and libraries) using OpenGL on Linux load libGL.so at runtime using dlopen API, instead of dynamically linking against it. Why do they do this? The only reason I can imagine is...
Brighton asked 15/11, 2010 at 16:9

3

I have a server application written in C++. After startup, it uses about 480 KB of memory on x86 Linux (Ubuntu 8.04, GCC 4.2.4). I think 480 KB is an excessive amount of memory: the server isn't ev...
Weeping asked 14/11, 2010 at 16:53

5

Solved

Consider we have the following situation: a program named program which depends dynamically on libfoo.so libfoo.so that depends on nothing (well, it depends on libstdc++ and stuff but I guess we ...
Kendry asked 5/11, 2010 at 16:7

2

Solved

I have a C++ library repeater.so that I can load from Python in Linux the following way: import numpy as np repeater = np.ctypeslib.load_library('librepeater.so', '.') However, when I compile t...
Homeless asked 14/8, 2010 at 0:40

6

Generally speaking one set of code (the client code) links against another (the API code). Java linking is typically verified between .java & .class at compilation time or between .class & ...
Pavis asked 28/7, 2010 at 18:40

2

I am developing an application that uses the GStreamer library. In order to ease deployment I would like to collect all the GStreamer libraries in a local bundle. For this I wrote a little script t...
Zebe asked 22/1, 2010 at 17:14

2

Solved

I have a program to which I'm adding fullscreen post-processing effects. I do not have the source for the program (it's proprietary, although a developer did send me a copy of the debug symbols, .m...
Swarth asked 3/5, 2010 at 19:41

© 2022 - 2024 — McMap. All rights reserved.