static-libraries Questions
2
In our environment we're encountering a problem regarding mocking functions for our library unit tests.
The thing is that instead of mocking whole modules (.c files) we would like to mock single fu...
Intermigration asked 27/1, 2020 at 13:27
4
Solved
I am trying to link an application with multiple static libraries in GCC.
There are two libraries that cause problems. Libsupport provides a terminal for the application. It relies on libcpu to pr...
Paco asked 26/1, 2011 at 8:42
21
I have a problem with linking my mixed language framework to a project.
I create a framework with Swift and Objective-C classes.
The main logic was stored in the Swift file. For example the class...
Christoperchristoph asked 27/9, 2018 at 11:51
5
Solved
I'm getting into CMAKE usage with C and actually I'm creating two very small static libraries.
My goal is:
The libraries are compiled and linked into *.a files. [THIS
WORKS]
Then I wish to copy ...
Bungalow asked 7/5, 2012 at 18:38
3
Solved
Motivating background info: I maintain a C++ library, and I spent way too much time this weekend tracking down a mysterious memory-corruption problem in an application that links to this library. T...
Poacher asked 4/4, 2022 at 12:16
9
Solved
I have 2 static Linux libraries, created by ar cr, libabc.a and libxyz.a.
I want to merge them into one static library libaz.a.
How can I do this.
I want to create a merged static library, not to ...
Ungraceful asked 29/9, 2010 at 13:13
2
Solved
I’m trying to build a Swift Package that wraps a fat static library written in C: libndi_advanced_ios.a from NewTek's Apple Advanced NDI SDK.
I am having trouble linking the pre-compiled library (o...
Jamal asked 2/1, 2022 at 15:39
2
Solved
I am getting started with Unreal Engine 4. I come from Libgdx and I am familiarized using WebSockets clients in my games and NodeJS with 'ws' on the server.
How ever, I can't find information abou...
Preachy asked 18/2, 2016 at 7:37
1
Solved
What is the minimal commmand line way to create an static and a dynamic library with Clang under Linux and Windows, and then, link it against an executable?
Suppose the project contains a main.cpp ...
Immature asked 6/2, 2022 at 21:47
2
Solved
I want to use OpenCV library in an embedded system and I need to compile my project using OpenCV as a static library.
How can I create the library using cmake options ?
Drat asked 28/9, 2011 at 12:26
3
I try to reference a static *.a library for my c++ project in CDT. I included it in
C/C++ Build -> Cross C++ Linker -> Libraries
But I get the error:
relocation R_X86_64_32S against symbo...
Colpitis asked 15/8, 2017 at 11:18
3
Solved
I have a .framework file and .a taken from two different projects. i want to find out the version number of the sdk used and also xcode version from the .a and .framework files.
is there a way to ...
Cassirer asked 28/10, 2013 at 18:9
5
Solved
I have a static library, say mystaticlib.a. I want to see its contents, such as the number of object files inside it.
How can I do this on gcc?
Neidaneidhardt asked 21/9, 2010 at 3:31
1
Solved
I use CMake to build a project that consists of multiple nested static libraries .A similar but simple structure is shown in the figure below:
TestProject:
|-CMakeLists.txt
|-Main.cpp
|-level2
| | ...
Cathern asked 20/8, 2021 at 15:21
4
We have 3 new options in "Frameworks, Libraries, and Embedded Content" section of Xcode11 Beta for adding libraries.
Xcode Libraries section screenshot
Can anyone explain what they do?
Ringlet asked 28/8, 2019 at 7:35
3
Solved
I have a question about library linking and .lib files...
this is the context:
OS = Windows
IDE = QT
I have created a DLL: MyLib.dll.
To use that library in my QT project, I only have to inclu...
Undercroft asked 26/11, 2013 at 11:41
2
I know an .so file is a kind of dynamic library (lots of threads can share such libraries so there is no need to have more than one copy of it in memory). But what is the difference between .a and ...
Viceregal asked 2/9, 2012 at 15:38
1
Solved
From the following example:
CMakeList.txt file:
include_directories(inc)
# Grab all the cpp and h files to be compile.
file(GLOB SOURCES
inc/*.h
inc/*.hpp
src/*.cpp
)
add_library(MyStaticLib...
Weevily asked 12/7, 2021 at 2:7
4
Solved
A bit context. Let's say I have source files, which need to end up in a static library. Let's say there are two cpp files a.cpp and a.cpp located in two different subdirectories. Something like thi...
Thermolysis asked 5/2, 2011 at 13:34
3
Solved
I've set
set(CAN_USE_ASSEMBLER TRUE)
And it's not helping at all. I'm trying to create a static library with a command like:
add_library(${CMAKE_PROJECT_NAME} STATIC
../PropWare ../spi ../spi_as....
Cowled asked 4/5, 2014 at 2:52
1
Solved
Consider OpenSSL, the project itself has two products: libssl.a and libcrypto.a.
For the sake of simplicity, let's use the precompiled libraries stored in this repository and consider just iphonesi...
Junco asked 7/6, 2021 at 19:16
9
Solved
What is the difference between static and shared libraries?
I use Eclipse and there are several project types including Static Libraries and Shared Libraries? Does one have an advantage over the o...
Liquor asked 15/4, 2010 at 22:8
1
Solved
I have a c++ shared library - libA.so. I hide symbols using -fvisibility=hidden flag. The symbols which should be visible have the following attribute: __attribute__ ((visibility ("default&quo...
Stackhouse asked 6/5, 2021 at 8:33
2
Solved
I have a rlib generated from this repository (a HAL library that could be used in embedded Rust) and I would like to identify the instruction sequences of functions in the library for my research w...
Undertaking asked 13/10, 2019 at 19:3
5
Solved
I am constantly getting this warning while building my android studio code using terminal command gradle clean assembleRelease:
Unable to strip library 'lib.so' due to missing strip tool for ABI '...
Seldom asked 22/11, 2018 at 20:28
© 2022 - 2024 — McMap. All rights reserved.