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
4,572
questions
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 ...
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)
...
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 ...
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($...
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@
...
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 ...
-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 ...
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 ...
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 --...
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 {
...
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 ...
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 ...
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:...
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), ...
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/
...