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,556
questions
0
votes
0
answers
12
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
54
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
71
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
28
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
34
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
22
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
37
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
43
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/
...
0
votes
0
answers
17
views
Problem with link stage while try use yaml-cpp "library" [duplicate]
Hi I am try create static library from yaml-cpp.
Windows x64 to use in my own project
I did next steps:
Clone repo prepare build dir and move to it
mkdir build
cd build
Configure Cmake in different ...
0
votes
1
answer
71
views
Is it possible to build opencv statically under Linux without having problems with missing/incompatible libraries?
I'm trying to distribute an opencv binary on different Linux operating systems, but I've failed because of dependency problems.
What I'm aiming for is something similar to the opencv-python pip ...
-1
votes
1
answer
35
views
Unit testing a library build/compile options (CMake)
I have a library, and inside the library are two implementations of how it works, one is a GPIO wrapper and the other is a simulator for when the machine being developed on does not have real GPIO ...
0
votes
0
answers
88
views
How to properly build Google V8 as a static library on a Mac OS in 2024?
I have been trying to follow the instructions to build V8 as described on the official web site with the intent of embedding it on my application but I keep getting a linker error.
I followed the ...
0
votes
1
answer
70
views
Correct way to link lssl and lcrypto for a static lib
I'm trying to build a static .a lib in C that would sha256 encrypt a string. I will access the lib from a C# NativeAOT program.
Before adding the sha256 encryption code I used the following commands ...
1
vote
1
answer
64
views
create static library of files with .inl extension
I am trying to create a static library of files with .inl extension, but getting failed. If I change the extension to .cpp then it builds.
CMakeLists.txt
cmake_minimum_required(VERSION 3.0.0)
project(...
0
votes
0
answers
28
views
How do I configure my library to best support static builds of dependent projects?
Suppose I am developing the libfoo library, written in a compiled language, and am using CMake to configure its build. This library itself depends on another library, libbar. Thus, if someone else is ...