Questions tagged [static-linking]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
30 views

gcc static linking tries/fails to find libgcc_s.a

My C++ application works fine with default dynamic linking, but... I'm trying to statically link all libraries to the application as unfortunately users cannot seem to install appropriate libraries (...
0
votes
1answer
75 views

./a.out fails to load

I am trying to execute a C program via gcc compiler on ubuntu 18.04 In a folder named 'gsl', I have extracted the gsl.tar file. This is also the folder where I save all my ' '.c programs written in ...
1
vote
0answers
692 views

How can I get glibc as a static library?

I want to compile a program and statically link it to glibc, so it can run on other Linux distributions without the user having to do any special configuration. I tried using CFLAGS="-static -static-...
1
vote
1answer
2k views

Is it possible to install static libraries from apt in 18.04 x86_64?

I'm trying to build a project that depends on binary distributed static libraries. The linker complains it cannot find ini_config functions, among others: config_params.c:(.text+0x16f): undefined ...
2
votes
1answer
162 views

Make link open target file, not file at link location

Sorry for the tags. I don't know whih one applies. Please remove not pertaining ones, then delete this line. Or comment, and I'll do it myself. Background I want to put a link to a file located in /...
3
votes
0answers
273 views

hidden symbol `pthread_atfork' in /usr/lib/x86_64-linux-gnu/libpthread_nonshared.a(pthread_atfork.oS) is referenced by DSO

I am trying to compile a large project, it includes a library: SAMG/ifort64.9.1.041-emt64/lib/libguide.so when I try to make project, there is an error message: hidden symbol `pthread_atfork' in /...
0
votes
1answer
552 views

Gcc does not link libraries [closed]

I'm trying to compile a program in the terminal using gcc. I'm kind of new to do this so I'm making some experiments with link various libraries. However some are working and some aren't and I wonder ...
1
vote
0answers
545 views

squeak: could not find any display driver

I am building the vm for squeak on Ubuntu 14.04 32-bit. It is failing to call entry points to libraries, whether these libraries are statically linked or loaded or not loaded. I have been doing some ...
1
vote
1answer
776 views

What are dynamic and static linking?

I hear the terms "Dynamically linked" and "Statically linked" tossed around in regards to packaging, and I have never been clear on what these terms actually mean. What are dynamic and static ...