static-libraries Questions
1
Is there an equivalent of the GNU "strip" tool for Windows?
I'd like to strip out the names of any internal symbols from a static library, so that running dumpbin /symbols mylib.lib will no longer...
Soundless asked 16/10, 2016 at 22:20
4
I have a bunch of projects that all could share a "common" static library of classes.
What confuses me is if I make a static library out of these classes and link against it in my projects that I ...
Henrieta asked 10/4, 2010 at 2:43
3
I'm using Code::Blocks IDE(v13.12) with GNU GCC Compiler.
I want to the linker to link static versions of required runtime libraries for my programs, how may I do this?
I already know that my exec...
Deland asked 29/9, 2014 at 15:53
8
I have a very similar problem to one described on the cmake mailing list where we have a project dependent on many static libraries (all built from source in individual submodules, each with their ...
Theolatheologian asked 20/6, 2016 at 13:55
3
Solved
I'm trying to generate a static library and link it with an execution binary.
This is a library function:
#include <stdio.h>
int hello() {
return 10;
}
With these commands, I could get...
Denature asked 19/6, 2015 at 23:44
8
I write a program helloworld.exe; it depends on a.dll. I don't have the source code of the a.dll, which is a dynamic dll. How can i change it to static library, so I can link it into helloworld.exe...
Nathalienathan asked 5/4, 2010 at 4:22
8
Solved
Is it possible to build resources into a static library and reuse them by simply linking with the library?
I'm primarily thinking about the case where you call a function in the library which in t...
Melanimelania asked 10/2, 2009 at 8:39
1
Solved
I have some legacy code with some singleton classes that register themselves using constructors of global variables. It's a large codebase, that's compiled into one executable. I have tried to orga...
Duffel asked 17/8, 2023 at 23:15
1
I'm building a library in Rust that will be called from C/C++ code. Cargo.toml is configured to output the crate as a static library:
[lib]
crate-type = ["staticlib"]
I have a test in tests/inte...
Rountree asked 20/12, 2016 at 11:44
4
I'm trying to create a single static library which contains object files and existing static libraries which have all been compiled earlier in the build process. Is there an easy way to do this usi...
Depalma asked 4/6, 2009 at 20:53
4
I have a header file and a .lib file created using C++.
Now I want to use it in a C# program. Is this possible?
Tenney asked 25/7, 2013 at 13:2
1
In CMake, we can write:
add_library(mylib mylib.c)
for a dynamically-linked (shared) library, and
add_library(mylib STATIC mylib.c)
for a static one. But - can we start with the first syntax, the...
Eozoic asked 22/4, 2023 at 8:25
4
I am attempting to use the libtommath library. I'm using the NetBeans IDE for my project on Ubuntu linux. I have downloaded and built the library, I have done a 'make install' to put the resulting ...
Pearce asked 4/10, 2009 at 19:5
4
Solved
Is it possible to call a static object (.so) file from Go?
I've been searchign Google and I keep hitting upon the claim that I can do
lib, _ := syscall.LoadLibrary("...")
But trying this gives a...
Astra asked 16/12, 2014 at 14:10
6
I'm working on a C++ application for Windows that uses OpenSSL 1.0.1e library. I'm on Visual Studio 2008.
For portability reasons my application is statically linked against runtime libraries (/MT...
Sprayberry asked 28/8, 2013 at 11:10
5
Solved
the .a archive format header requires a timestamp. This has led to countless headaches when I rebuild a static library, mainly because I can't exactly reproduce the original binary.
For example (t...
Neutrophil asked 19/7, 2011 at 2:40
27
I try to integrate Swift code in my app.My app is written in Objective-C and I added a Swift class. I've done everything described here. But my problem is that Xcode haven't created the -Swift.h fi...
Thay asked 13/6, 2014 at 13:39
1
I'm trying to build MediaPipe as library on macOS to be able to use it in a
desktop project with CMake, but I'm running into issues. I'm trying to convert
the Hello World example to a library, usin...
Swag asked 11/2, 2020 at 13:19
3
Solved
I'm using CMake in a project, and I'm trying to statically link some libraries.
I've set:
set(BUILD_SHARED_LIBS OFF)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
set_targ...
Gambit asked 7/6, 2013 at 19:4
5
Solved
Now i create a new project include c++ support in Android Studio 3.2, it has native-lib.cpp naturally, the CMakeLists.txt looks like this:
add_library( # Sets the name of the library.
native-lib
...
Wanhsien asked 23/10, 2018 at 15:1
2
Solved
In this tutorial on how to use CocoaPods I am having trouble understanding the following paragraph:
Unlike Objective-C, the standard Swift runtime libraries aren’t
included in iOS! This means y...
Hern asked 25/4, 2017 at 22:48
4
What is the difference between a static and dynamic library in XCode? And why doesn't Apple allow us to use dynamic libraries in our iOS applications?
Ptolemy asked 16/9, 2010 at 5:3
1
What's the difference between these Xcode Build Phases: Headers & Copy Files?
When I add a Cocoa Touch Static Library (iOS) to my project, it comes with a Copy Files build phase, whereas when ...
Baseler asked 21/10, 2017 at 16:54
18
Solved
Alternate titles to aid search
Xcode can't find header
Missing .h in Xcode
Xcode .h file not found
lexical or preprocessor issue file not found
I'm working on an iOS application project which c...
Kaykaya asked 4/4, 2011 at 20:18
3
Solved
I am quite new to xcode and objective-c. I want to ask a very basic question.
I saw that when "linking binary to libraries" in project settings, there are differences about framework and libraries...
Unclasp asked 5/6, 2011 at 20:49
1 Next >
© 2022 - 2024 — McMap. All rights reserved.