Skip to main content

Questions tagged [static-libraries]

A static library is an archive of object files. Used as a linker input, the linker extracts the object files it needs to carry on the linkage.

static-libraries
-1 votes
1 answer
108 views

Library multiple linking and binary duplication?

Here is a basic question (so possibly dup, but so far I couldn't find an appropriate answer, even in How does the compilation/linking process work?) regarding library linking in C++ and possible ...
Oersted's user avatar
  • 1,649
0 votes
0 answers
28 views

Gcc not linking to objects in same static library

I am using gfortran (in the form of mpif90) to link a large mpi program. It all seems to be fine except for one library libgptl.a. The link step generates a number of errors but all of the form: ...
David Webb's user avatar
0 votes
1 answer
357 views

Building your own package for distribution via vcpkg

I'm running into an issue with a local test of (MacOS) as I install my own package from Github via vcpkg, in a brand new c-based project) Here's what the vcpkg folder structure looks like: x64-osx/...
Source's user avatar
  • 307
0 votes
1 answer
254 views

How to debug a complex project source code which generates a static library?

I am dealing with a complex C++ project. (Simulation Environment). I have a source code which has multiple services and apps inside. The project mostly written in C++. I want to make changes on ...
Fjolnirr's user avatar
1 vote
0 answers
43 views

How do i link only desired functions from static library?

I want to link only Print_String and Exit functions from this assembly GNU/as x64 library (that actually contains 20+ functions): .intel_syntax noprefix .section .text .global Exit Exit: #Exit ...
Bartek_0x00's user avatar
0 votes
1 answer
261 views

Building Qt from source statically for Visual Studio

I tried hundreds of times to build Qt from source for static linking and read many Stack Overflow questions and neither of them worked for me. How to get the static library and use it to build apps in ...
Sayed Reda's user avatar
0 votes
1 answer
133 views

Compilers allow a weak symbol function with no implementation and no linker error

A static library declares a function with a weak symbol. Later an application (not providing the function implementation) statically links the library but no linker error is generated. This seems to ...
rare77's user avatar
  • 419
0 votes
1 answer
222 views

No linker error when static library calls weak function with no implementation [duplicate]

The overall problem I am trying to solve: I would like a library statically-linked to my application, to call a function within my application. However, when the library is compiled and installed, it ...
rare77's user avatar
  • 419
0 votes
0 answers
37 views

How do I build a .lib file containing Fortran functions, for use in a C program for Windows?

I am trying to build a .lib file from Fortran subroutines. I know how to do a standard compilation like so: My fortran files: mysub1.f90 and mysub2.f90 subroutine mysub1() bind (C, name="mysub1&...
DJames's user avatar
  • 669
0 votes
1 answer
143 views

Statically linked executable with dynamic loading

I'm not sure if it makes sense or not, but is it possible to have a statically linked executable + dynamic loading ? In other words: at compile/linking time an object code is statically linked against ...
Carlo C's user avatar
  • 169
0 votes
0 answers
105 views

How to make a library from .pas files and use it in a C++Builder project targeting Android?

I'm trying to use a .a library in an Android project, made using C++Builder 11.2 from a collection of Delphi .pas files. When I try to run the project, the IDE doesn't start the debug mode, and the ...
PCSdeZ's user avatar
  • 1
0 votes
0 answers
99 views

How to strip private member function symbols from static lib

I'm looking to see if i can strip all the private member function symbols from a static library. my class looks something like the below: header: #define PUBLIC __attribute__ ((visibility ("...
Connagh Jacobi's user avatar
0 votes
0 answers
34 views

How to add size reducing options to cUrl's Makefile.vc

Currently I build static cUrl with command: nmake /f Makefile.vc MACHINE=x64 mode=static RTLIBCFG=static DEBUG=no ENABLE_IDN=no ENABLE_IPV6=no cUrl documentation says there are 4 places to configure ...
qloq's user avatar
  • 1,165
2 votes
1 answer
345 views

Is it possible to build a dynamic framework without the symbols of a static library that it links to?

I have an app that links to two dynamic frameworks which both link to the same static library, as follows: |--App |--DynamicFramework1 |--StaticLibrary |--DynamicFramework2 |...
Adil Hussain's user avatar
  • 31.5k
0 votes
1 answer
701 views

Undefined symbol when linking static library to Android NDK

I'm using a Gradle project provided by the SDL repository to use with Android builds. On its own, the project builds fine with full access to SDL. But I have a static library that I'm trying to link ...
Makoren's user avatar
  • 331

15 30 50 per page
1
3 4
5
6 7
305