Skip to main content
The 2024 Developer Survey results are live! See the results

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.

0 votes
0 answers
10 views

Including static .a Libraries in CMake Project [duplicate]

I am working on a project for STM32 in VSCode and I need to include libraries with the .a extension to be able to call their functions. I need help with configuring CMake. My current CMake setup looks ...
WITC's user avatar
  • 197
0 votes
1 answer
48 views

Undefined refenrece after importing static library in C

I have a static library built from another project and I want to use it in new project. My CMakeLists.txt: cmake_minimum_required(VERSION 3.0) project(smah) add_library(lotrlib STATIC IMPORTED) ...
plomba's user avatar
  • 11
0 votes
1 answer
84 views

Are static libraries generally rebuilt entirely if one of the obj files that make them up is changed?

I know that if I have a project with a bunch of different translation units and change something only in that translation unit (what ends up in the obj file) is recompiled. Then linking with the ...
Zebrafish's user avatar
  • 12.8k
0 votes
0 answers
22 views

How do I tell Cmake to link to a static library instead of a shared one when using find_package()?

I'm working on a C++ project where I need to link against the GLFW library, specifically using the static library. im using find_package(glfw3 REQUIRED) to find the library and target_link_libraries($...
user avatar
0 votes
0 answers
13 views

Dynamic library tries to link to static one

ALL, In my configure.ac I have added following line: AX_HAVE_QT() and then in Makefile.am I'm doing this: QT_CXXFLAGS = @QT_CXXFLAGS@ QT_DIR = @QT_DIR@ QT_LIBS = @QT_LIBS@ QT_LRELEASE = @QT_LRELEASE@ ...
Igor's user avatar
  • 5,907
2 votes
1 answer
54 views

grpc c++ - Shared library vs static library

I tried to build grpc c++ in two ways. One with -DBUILD_SHARED_LIBS=ON and one without it. When it is off, I get in the lib/ directory, for example: 360M libgrpc.a (Any many other libraries) When it ...
user3599803's user avatar
  • 6,894
-2 votes
0 answers
44 views

static library link dosent work (visual studio) [duplicate]

i have a static link library project and a regular project that is using the library project they ar both using the sfml library and are linked to it staticly when im not using any code from the ...
the block's user avatar
0 votes
0 answers
18 views

How to Build a Self-Contained TensorFlow Lite Static Library?

I am working on a project where I need to distribute a shared library that loads a TensorFlow Lite model and performs inference on input data provided by the user. My goal is for the users to be able ...
ZR Han's user avatar
  • 278
0 votes
2 answers
59 views

Can MinGW's static library be linked to MSVC

I use mingw-w64 on linux to cross compile the ffmpeg static library for windows with the following command: ./configure --arch=x86 --disable-doc --disable-ffplay --disable-ffprobe --disable-ffmpeg --...
ValueError's user avatar
1 vote
1 answer
72 views

Can static-libraries functions get inlined?

Can Static-libraries functions get inlined? lets say I have these files main.cpp #include <lib/header.hpp> int main() { return lib::meaningoflife(); } lib/header.hpp namespace lib { ...
user24551355's user avatar
0 votes
0 answers
30 views

Hiding non-exported symbols in static libraries on Windows

I have a set of C files that are compiled and linked into a library. If I create a normal dynamic library (.so, .dylib or .dll) I can make sure only those functions marked as EXPORTED are visible to ...
magicus's user avatar
  • 131
0 votes
0 answers
40 views

How to nest a static library in a static library project in Visual Studio

I have a c++ project in Visual Studio to create a static library. I need to modify it in order to use another external static library (in the specific this library is NLopt). If my project was a ...
Mattia's user avatar
  • 155
0 votes
0 answers
26 views

How to Build libQGLViewer as a Static Library (.lib) for MSVC in a Qt Project

I need help building libQGLViewer as a static library (.lib) instead of a DLL. Context: Project Setup: I'm working on a Qt project and we are migrating from MinGW to MSVC. Qt Version: 5.15.2 Compiler:...
Polymood's user avatar
  • 459
0 votes
0 answers
53 views

Building a static library that builds gRPC as submodule with cmake

I am building a static library (say, libsdk), and I am using gRPC as a submodule that is built (using add_subdirectory). I am able to build gRPC and my libsdk into a single static library (libsdk.a), ...
m1cky22's user avatar
  • 208
0 votes
0 answers
45 views

Ignoring "#include"s only in the released library?

I have a templated library where all of my classes are explicitly instantiated and built into a static library. The library is structured like this: repo/ | - include/ | - mylib/ ...
Chris Gnam's user avatar

15 30 50 per page
1
2 3 4 5
305