Skip to main content

Questions tagged [static-linking]

linking that is performed in compile time, as opposed to runtime dynamic linking

-1 votes
1 answer
1k views

So as I was learning, I was told that it's bad to define function within header files, as if it's included in multiple places, it'll produce multiple copies of that function and later causes error in ...
Andrew.Wolphoe's user avatar
7 votes
2 answers
9k views

In the comments of a recent answer, I equated a static library with an archive of compiled object files. The response was that they are not the same, so what is the difference? To clarify - gcc ...
Baldrickk's user avatar
  • 734
9 votes
2 answers
12k views

Context: I have an open source project which uses JNI. While it's possible to build it yourself, I expect most users will use standard Java tools like Maven, Gradle, or SBT to download the JAR, which ...
Robert Fraser's user avatar
-1 votes
1 answer
85 views

I have a large shared library, a collection of functions created from numerous .a files into libeverything.so. The code for the .a files is obviously compiled with -fPIC. I also have libeverything.a ...
juhist's user avatar
  • 2,579
0 votes
2 answers
1k views

I know how to actually do the linking, but I'm not sure what the best practice is for actually getting those libraries downloaded and into my repository. Should I just straight-out include them using ...
markasoftware's user avatar
4 votes
2 answers
4k views

SDL 2's installation page contains the following comment on static linking: However, we encourage you to not do this for various technical and moral reasons I totally get why they would mention ...
Wingblade's user avatar
  • 217
1 vote
0 answers
186 views

I just learned that static library building skips the linking stage, which explains why my build process succeeds all the time when it's possible I actually haven't implemented a function in my header....
johnbakers's user avatar
14 votes
1 answer
4k views

From this question on SO, I read that: Proprietary Source code + LGPL Source code statically linked: Either you must release both parts as LGPL. Or provide everything that allow the user to relink ...
IvanB's user avatar
  • 143
3 votes
2 answers
822 views

I know the difference between static and dynamic linking. I know why the notion of a library is important. And I even know why you'd want to link something like OpenGL, platform-specific APIs, or ...
JesseTG's user avatar
  • 657
8 votes
2 answers
6k views

Here is the scenario: libA.so and libB.so both statically link to the same STL. libA.so has a public API that returns a std::string. libB.so calls this function and receives a copy of the string. When ...
user1509041's user avatar
8 votes
3 answers
5k views

I've been bitten for the n-th time now by a library mismatch between a build and deployment environment. The build environment had libruby.so.2.0 and the deployment environment had libruby.a. One ruby ...
user avatar
12 votes
2 answers
7k views

Clearly Apple has the ability to create dynamically loaded libraries (known as frameworks) for iOS, as they ship several with XCode (such as UIKit). App developers only have the ability to create ...
Joel Fischer's user avatar
3 votes
2 answers
3k views

I know very well of the difference of static versus dynamic linking. What I want to know is, when linking statically (with a library like Winmm.lib on Windows), how does the linker "link" the pre-...
user avatar
13 votes
3 answers
23k views

I am working in QT . Can a static library depend on another static library?(Static Lib is made by linking another static lib) If yes, is it possible that after linking to lib2, the generated lib(lib1)...
sk patra's user avatar
  • 457
0 votes
4 answers
220 views

I'm writing a small program that I want to be able to link with other programs. I also intend to run it from a command line interface, and maybe later with a GUI interface. How could distribution ...
Topo's user avatar
  • 361

15 30 50 per page