All Questions
Tagged with static-libraries c++
1,631
questions
0
votes
0
answers
16
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
33
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
2
answers
55
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
41
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/
...
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 ...
0
votes
0
answers
90
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 ...
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
50
views
Linker error, can't compile GLFW on MacOS
I'm trying to setup my project using premake but i'm getting some linking error with GLFW, here are the premake files:
premake file for GLFW lib:
project "GLFW"
kind "StaticLib"...
-1
votes
0
answers
23
views
What must be linked to use oatpp without cmake? [duplicate]
I am trying to learn oatpp. One process that I tend to do when learning a new library is to avoid cmake. The problem now happens that oatpp's library's examples exclusively uses cmake.
Compile command
...
0
votes
1
answer
54
views
Can the C++ linker deduce symbol from function call without a function prototype
If I have a static library with implementations for some classes and functions, is it possible to link to it without a header file that declares the functions and classes implemented in the static ...
-5
votes
1
answer
88
views
Is It safe to move external header file in clang include directory in mac
In my mac system I have installed both gnu-gcc, gnu-g++ and apple-clang, apple-clang++ through home brew but as time. I am some header files are not available in apple-clang but in gnu-gcc there are.
...
1
vote
1
answer
87
views
Executable program override a method
I have created an executable, that linked against a static library.
But I want to create another program, that changes behavior of 1 method that defined in this lib without recompilation. I cannot use ...