dynamic-library Questions
3
Solved
Why if i have this simple code
void voidFunct() {
printf("voidFunct called!!!\n");
}
I compile it as a dynamic library with
gcc -c LSB.c -o LSB.o
gcc -shared -Wl -o libLSB.so.1 LSB.o
And i...
Wolver asked 20/5, 2011 at 14:45
9
relocation against xxx in read-only section '.text' - wrong compiler or linux setup in SUSE?
I'm not a frequent user of Linux and I think I did something wrong.
This is the code for a test dynamic library ".so" I'm generating.
class InternalClass
{
public:
int Function(){ return...
Polynuclear asked 22/12, 2020 at 11:8
20
I run a PHP script and get this error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/ixed.5.2.lin' - /usr/local/lib/php/extens...
Baiel asked 12/3, 2011 at 11:41
34
Solved
This crash has been a blocking issue I used the following steps to reproduce the issue:
Create a Cocoa Touch Framework project
Add a swift file and a class Dog
Build a framework for device
Create...
Monoploid asked 20/6, 2014 at 19:0
3
Solved
I have a shared library that I'd like to dynamically link into several separate binary Cargo applications. I include its location in the linker using the -- -L /path/to/dir format and the applicati...
Postmeridian asked 15/11, 2016 at 5:33
2
Solved
I feel weird about difference between advantage of dynamic linking library in Window or Linux and iOS.
⬇️ sentences below are to prove why I feel weird.
I learned that library can divided into stat...
Scintillate asked 21/4, 2021 at 8:38
2
Solved
I'm trying to build a .dylib in Xcode. Currently the .dylib builds, but when I drag the .dylib into another project and try to #import one of the headers (Seeker.h) in the .dylib, I get this error:...
Horning asked 17/10, 2010 at 20:58
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
3
I'm currently developing a framework for internal usage, but I'm having trouble getting it to play nicely. The issue i seem to be having is that the framework uses cocoapods for some of its depende...
Nita asked 17/6, 2017 at 7:27
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
11
Solved
I'm trying to make a dynamic framework for an iOS app. Thanks to the new version of Xcode (6) we can select a Cocoa Touch Framework when we create a new project and there is no more need to add an ...
Middling asked 4/6, 2014 at 13:57
15
Solved
When using an embedded framework (dyld) in Xcode 6.0.1 with deployment target less that iOS 8 I get:
Build is successful
Runtime library loading error
Error:
dyld: Library not loaded: @rpath/O...
Enjoy asked 18/9, 2014 at 10:11
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
When I compile python from source manually (with --enable-shared), I get a dynamic library in the lib directory. For example:
$ ls $PYTHON_INSTALLATION_DIRECTORY/lib
libpython3.9.so libpython3.9.so...
Windsor asked 23/6, 2022 at 13:11
2
Solved
I'm working on a cross-platform program that calls a function from a dynamic library with C linkage. I need to support multiple versions of this dynamic library, but between two of the versions I n...
Sally asked 3/5, 2022 at 17:8
5
Solved
I recently discovered the linker option "-Bsymbolic-functions" in GNU ld:
-Bsymbolic
When creating a shared library, bind references to global symbols to the
definition within the shared librar...
Triturate asked 27/8, 2011 at 19:52
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
6
Solved
I am trying to normally import the TensorFlow python package, but I get the following error:
Here is the text from the above terminal image:
2020-02-23 19:01:06.163940: W tensorflow/stream_exec...
Dismissive asked 24/2, 2020 at 0:42
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
2
Solved
I'm dynamically overriding malloc() with a fast_malloc() implementation of mine in a glibc benchmark malloc speed test (glibc/benchtests/bench-malloc-thread.c), by writing these functions in my fas...
Lentha asked 29/6, 2021 at 0:22
2
My question concerns the use of OpenMP in C++ functions stored in dynamic libraries. Let's consider the following code (in shared.cpp):
#include "omp.h"
#include <iostream>
extern "C" {
int ...
Poseur asked 18/3, 2015 at 8:45
2
Solved
I have a C program using dynamically loaded library to load plugins.
I would like to trace the library calls in order to debug the plugin's loading.
I looked at ltrace, but I can't seem to make it ...
Haggar asked 19/12, 2020 at 22:49
3
Solved
I have software that first loads a .dylib lets call libFirst.dylib using the following command:
void* handle = dlopen(path.c_str(), RTLD_LAZY | RTLD_GLOBAL);
Later on inside a function from the ...
Antiquated asked 15/7, 2011 at 18:58
1
I've been trying to submit a Swift app with an Obj-C Dynamic Library (.dylib) which keeps getting rejected by the iOS App Store with error messages such as
Invalid Swift Support - The files lib...
Cathar asked 17/12, 2018 at 15:59
2
I have come across multiple sites describing that frameworks can contain both static as well as dynamic library. But how do I identify if what the framework actually contains is a dynamic library o...
Zoezoeller asked 4/11, 2015 at 12:35
1 Next >
© 2022 - 2024 — McMap. All rights reserved.