Questions tagged [dynamic-linking]

Dynamic linking is a system which allows libraries to remain separate from programs until loaded, contrast static linking.

1607 questions
0
votes
1 answer

Linker error in g++ while trying to link to SDL_ttf shared object files

I am trying to use the SDL_ttf development library in an Ubuntu environment. I started by downloading the dev libraries via: sudo apt-get install libsdl-ttf2.0-dev. Next, I imported the header file in my code as so: #include When I…
0
votes
1 answer

dlclose not unloading nested shared library on gcc, linux

I have gone through other questions on SO with no luck for eg: C++: dlclose doesn't unload the shared library I have encountered with two shared objects(unfortunately i can't expose the code). lets say liba.so and libb.so liba.so implicitly links…
Sam
  • 1,842
  • 3
  • 19
  • 33
0
votes
1 answer

how to deal with symbol lookup error?

a.out call function fooA() using dlopen function to open libA.so. fooA() is defined in libA.so //dynamic library fooA() call function fooB(); fooB() is defined in libB.a //statistic library fooB() call function fooC(); fooC() is defined in…
ttworkhard
  • 293
  • 1
  • 7
  • 14
0
votes
1 answer

Build with gcc for systems with older gcc

Hi I am trying to build an executable on Ubuntu for RedHat 6.4 - and I am struggling due to the different gcc versions. The RedHat 6.4 machine uses gcc 4.4.7. The Ubuntu machine uses gcc 4.6.3. Here is what I have tried: Install g++-4.4 on the…
Cookie
  • 12,004
  • 13
  • 54
  • 83
0
votes
1 answer

Minimum amount of information necessary to do (dynamic) linking?

This is a question I've come across repeatedly, usually concerning plug ins, but recently I came across it trying to hammer out some build system issues. My concern is primarily for *nix based systems, but I suppose it applies to windows as…
falstro
  • 34,597
  • 9
  • 72
  • 86
0
votes
2 answers

How to create a dynamic library for c++ on linux?

I would like to create a dynamic library for c++ program on linux. In c++ program/system I`m using libconfig++ library, libpqxx library, some boost and c++11. My steps: 1) g++ -Wall -I/usr/local/include/ -std=c++0x -lconfig++ -Wall -lpqxx -lpq -fPIC…
andrew
  • 3,083
  • 4
  • 24
  • 29
0
votes
2 answers

App looking for an invalid dynamic library

alt text http://img63.imageshack.us/img63/5726/screenshot20100125at124.png I keep getting multiple error windows for an app i'm developing asking for ._libpal_bullet.dll when it should really be just libpal_bullet.dll. The weird thing is after I get…
Brock Woolf
  • 46,656
  • 50
  • 121
  • 144
0
votes
1 answer

load dynamic library from zip,memory etc

Is there a way to load a dynamic library (so or dll) from a zip file, memory, or a custom pack file; or am I wasting my time? There is nothing I can find on the internet about it. [EDIT] Clarification: I am looking for a runtime loading of the…
Gasim
  • 7,615
  • 14
  • 64
  • 131
0
votes
1 answer

run configure to generate shared libraries [Ubuntu]

I'm running a ./configure script and make to build a library. However, only .a libraries are generated. Is there an option to generate shared libs?
Bob
  • 10,741
  • 27
  • 89
  • 143
0
votes
0 answers

How to use nasm to generate a dynamic linked exe on windows?

Basically I know we can use this to create a static linked exe on windows 32 bit: nasm -fwin32 test.s cl.exe test.obj /link libcmt.lib But how to create a dynamic-linked exe from the obj file nasm generated?
lllllllllllll
  • 8,519
  • 9
  • 45
  • 80
0
votes
1 answer

Does MongoDB require the gcc version 4.0.0 or higher?

I am using MongoDB Solaris package. When I use ldd command to check the mongod, the output is: bash-3.2# ldd mongod libsocket.so.1 => /lib/64/libsocket.so.1 libresolv.so.2 => /lib/64/libresolv.so.2 librt.so.1 => …
Nan Xiao
  • 16,671
  • 18
  • 103
  • 164
0
votes
1 answer

Static linking of Libc

I'd need to statically link all the dependencies of a binary in the binary itself (that is also the libc). I've tried the option -static-libgcc but it did not worked, the size of compiled binary is the same as the dynamic compiled one (that is…
badnack
  • 737
  • 1
  • 11
  • 20
0
votes
1 answer

rails link_to image rather than root

I have a fancy box gallery on an index page. The gallery consists of the instance @gallery which is a model for all images that are supposed to be in the gallery. The gallery shows once a link is clicked. I also have three studios on that specific…
user2184718
  • 675
  • 1
  • 12
  • 30
0
votes
3 answers

ln command creates broken links

I'm having trouble using the ln command in a makefile. This is a part of my makefile for creating a dynamic library: NAME := Net DDIR := dynamic_library DLIB := $(DDIR)/lib$(NAME).so MAJOR := 1 MINOR := 0 VERSION :=…
0
votes
1 answer

Full paths of dynamic libraries in crash logs on OS X?

I have a crash due to the dynamic loading of two different versions of libcairo. In the crash log I can see the following Binary Images: ... 0x10b80a000 - 0x10b89afef +libcairo.2.dylib (11003.2)
soegaard
  • 30,661
  • 4
  • 57
  • 106
1 2 3
99
100