Skip to content
Advertisement

Tag: linker

Segfault from ld-linux in my build of glibc

Running Ubuntu 10.04 Downloaded the source and did the following: This works: This fails: But this works: False, grep, and cat and everything else I’ve tried in /bin segfault in the same manner. Is there an issue with the source? Am I compiling it incorrectly? Also of note is that i downloaded the correct version (slightly newer) for the raspberry

g++ custom dynamic library linking error undefined symbol

Ok, I’m looking for a solution for 2 days now. I didn’t find anything to solve my problems. What is currently going on? So, I tried creating a dynamic library (.so) on Linux Mint Maya 13 with g++. foolib.h: foolib.cpp: main.cpp: I compiled these files with these instructions: libfoo.so: foo: Creating libfoo.so works without any errors, but foo throws undefined

Mach-O’s two-level namespace symbol resolution in ELF/linux

Anyone know of an equivalent to Mach-O’s two-level namespace symbol resolution in ELF/linux? I want code that links to lib+sym, not sym. I’m trying to do what could best be described as precompilation of what normally would be a JIT compilation. I’d like to get a compile time binding of symbols, that normally would be done by a dlopen/dlsym. However,

ld cannot find an existing library

I am attempting to link an application with g++ on this Debian lenny system. ld is complaining it cannot find specified libraries. The specific example here is ImageMagick, but I am having similar problems with a few other libraries too. I am calling the linker with: ld complains: However, libmagic exists: How do I diagnose this problem further, and what

Advertisement