The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
1answer
81 views

Can't link libreadline on Ubuntu 14.04

this may be a very stupid error, but can't find any reference in the web. I try to compile this bare minimum readline example: #include <stdio.h> #include <malloc.h> #include ...
0
votes
0answers
46 views

Extracting a statically linked library

Is it possible to extract a statically linked library from an executable (e.g. turn it into an .so file), when I have the .h header file declaring the symbols? I also already have the .so file, but ...
1
vote
0answers
182 views

Why can I compile against libclang-3.5.so and not against libclang.so?

I am trying to compile a C source file, that needs to be linked against a dynamic library I installed through apt-get (libclang.so). apt-get installed the clang shared libraries in ...
0
votes
0answers
31 views

Linking with versioned shared libraries

I've been using Ubuntu for a couple of years now and a problem that I consistently come across is with linking against particular versions of shared object files. For example, I'm trying to install ...
0
votes
1answer
55 views

Is the compiled version of a binary dynamically linked to the system SSL library?

In my case I build nginx from source and I want to confirm whether I need to rebuild it whenever a new OpenSSL update is released. From what I understand either of these two commands can be used to ...
0
votes
0answers
19 views

What's the easiest way to bring in libraries from a newer version of ubuntu?

I'm using Ubuntu 12.04 (precise). I'm trying run a binary which has dependencies that are not in the precise but are in trusty. What's the easiest way to bring those in? Here they are: libunwind8, ...
1
vote
1answer
6k views

Installing Oracle database 12c on Ubuntu 14.04

Is there anyone out there that got Oracle 12c working on Ubuntu 14.04? I tried following this tutorial (which is written for installing Oracle 12c on Ubuntu 12.04): ...
0
votes
1answer
923 views

How do I deal with “undefined reference to dlopen” errors while compiling and using OpenFST on Ubuntu?

Trying to compile and use OpenFST on Ubuntu 13.10 leads to link errors like "undefined references to dlopen". How does one fix this? Searching online suggests including -ldl in the gcc command line, ...
0
votes
2answers
44 views

Windows and Ubuntu Linking

I am a PhD student doing Aeroelastic CFD simulations and I am working with one fluid open source code (Flower) running on Ubuntu and one commercial sturctural csoftware (SIMPACK) running on Windows ...
1
vote
0answers
610 views

pthread link failure on Ubuntu 13.10 64 bit with multilib support

I am re-compiling a C application that linked fine on Ubuntu 13.04. It is failing to link (-lpthread -lrt) with: undefined reference to `sem_post' undefined reference to `pthread_create' etc. ...
3
votes
1answer
4k views

Where does Ubuntu look for shared libraries?

When I run a process that links to a shared library at runtime (linked when the process starts, not linked later with dlload()), where does it look for that shared library (.so) file other than ...
0
votes
1answer
485 views

ld: cannot find -ljson

I tried running sudo apt-get install libjson-glib-dev with no luck. Was not able to find anything useful by googling either. Anyone know what package I need to install to be able to link json?
2
votes
1answer
383 views

undefined reference to `GDALAllRegister' [closed]

I have problem with gdal. I am currently working on Ubuntu and the IDE is Eclipse CDT i have given my code below and i have also installed the gdal package but it gives build errors #include ...
1
vote
0answers
374 views

SDL2 - Undefined references

I just started using SDL2 (on Ubuntu 13.04 x64) and everything was going fine, until I tried to use SDL_image. I added this piece of code, for loading images: SDL_Texture* LoadImage(std::string ...
0
votes
1answer
831 views

msp430/bin/ld: cannot find -lc

I installed successfully msp430-gcc 4.7.0 compiler. The compiler at the final stage of the linking process it shows me the following error for Ubuntu 12.04. msp430-gcc -mmcu=msp430f1611 ...
1
vote
1answer
150 views

Why doesn't LD_LIBRARY_PATH has any effect?

./a.out: error while loading shared libraries: libc++.so.1: cannot open shared object file: No such file or directory even though: $ echo $LD_LIBRARY_PATH ...
0
votes
1answer
61 views

Static linking to a library

I'm trying to run a pre-compiled program from http://cherrypit.princeton.edu/donev/Packing/PackLSD/Instructions.html The pages states that: The executables only link in standard (OpenGL, ...
2
votes
1answer
70 views

Why is the library's linker name only in the -dev package?

Take a package like sqlite3: http://packages.ubuntu.com/lucid/i386/libsqlite3-0/filelist http://packages.ubuntu.com/lucid/i386/libsqlite3-dev/filelist Note that the linker name ...
0
votes
1answer
1k views

dlclose does not call library destructors, dlopen called just once

consider the following code for a dynamic loaded library built with g++-4.7 on linux, -fPIC and linked with -rdynamic option: typedef std::vector< void* > cbRegister_t; struct Wrapper ...
2
votes
0answers
91 views

compiling a shared library

I'm doing a 64-bit rewrite of some code I wrote that implements a novel approach to genetic algorithms that I want to turn into a shared library exclusive to Ubuntu using code::blocks/gcc. I have ...
3
votes
3answers
6k views

How do I run a game with a .x86 extension

Can anyone help me run the game cs portable, I used to play this all the time on windows?? it's free and the download link is here, the download link is in the bottom of his profile description. The ...
2
votes
2answers
4k views

ld cannot find math library

I just installed ubuntu 12.04 LTS and am having trouble linking to the math functions (from ). I have gcc installed and able to compile the source fine. However, trying: gcc -lm montecarlo_time.o ...
2
votes
1answer
2k views

How to reset LD_PRELOAD

I've done the following command to set the path for LD_PRELOAD. But it's the wrong path. export LD_PRELOAD=/home/ Does anyone know what is the default path for LD_PRELOAD on Ubuntu 12.04? What is ...