shared-libraries

Call a function in another object file without using PLT within a shared library?

为君一笑 提交于 2020-01-23 20:10:16
问题 I have two assembly codes, code1.s and code2.s and I want to build a relocatable (using -fPIC switch) shared library from these two. I want code2.s call a function, named myfun1 , which is defined in code1.s . When I use call myfun1@PLT in code2.s it finds the function and it works like a charm but it uses PLT section to call this function which is in the same shared library. I want to do this without adhering to PLT section. When I remove @PLT I get the relocation R_X86_64_PC32 against

Using Static/Shared C Libraries in Higher Level Languages [closed]

寵の児 提交于 2020-01-23 13:04:40
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I'm wondering if there is some way to take my custom shared/static libraries, made in C, and use them into another higher language such as python or node.js. I came with this because I'm writing a few libraries to calculate some math stuff. I heard about node.js not being so good

Using Static/Shared C Libraries in Higher Level Languages [closed]

对着背影说爱祢 提交于 2020-01-23 13:04:33
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I'm wondering if there is some way to take my custom shared/static libraries, made in C, and use them into another higher language such as python or node.js. I came with this because I'm writing a few libraries to calculate some math stuff. I heard about node.js not being so good

Purging and rebuilding ldconfig cache?

[亡魂溺海] 提交于 2020-01-22 10:30:49
问题 I am trying to purge the ldconfig cache of links to libraries to link against. I have a local folder where newly built libraries are placed. I want to update the ldconfig cache to point to these newly built libs. I have tried using the ldconfig -c command, giving it my own .conf file. I also tried replacing the /etc/ld.so.conf file to point to the new path of libs. But even after doing this, when I check the cache using the ldconfig -p command , it is still showing the old libs. Hence how to

Share gitlab-ci.yml between projects

不想你离开。 提交于 2020-01-20 19:55:37
问题 We are thinking to move our ci from jenkins to gitlab. We have several projects that have the same build workflow. Right now we use a shared library where the pipelines are defined and the jenkinsfile inside the project only calls a method defined in the shared library defining the actual pipeline. So changes only have to be made at a single point affecting several projects. I am wondering if the same is possible with gitlab ci? As far as i have found out it is not possible to define the

Static library & Dynamic library : Confusion

 ̄綄美尐妖づ 提交于 2020-01-20 19:55:31
问题 I need little clarification in this area. I feel that the terms Static library & Dynamic Library are not correct. lib1.o + lib2.o + lib3.o --> "LinkerOutputFile"(executable or library). If this "LinkerOutputFile" contains the code of all the files lib1.o , lib2.o, lib3.o then its said that "LinkerOutputFile" is satically-linked "LinkerOutputFile"(executable or library). (or) If "LinkerOutputFile" just contains references & other information about to lib1.o, lib2.o, lib3.o without containing

Mixing static libraries and shared libraries

南楼画角 提交于 2020-01-20 05:02:25
问题 I have a project where I have one static library libhelper.a and another with my actual shared object library, libtestlib.so . My goal is to link libhelper.a into libtestlib.so . Is that possible on Linux/BSD? When I tried and created a test program I got the following errors: ./prog1:/usr/local/lib/libtestlib.so.1.0: undefined symbol '' My guess is that this is occurring because libhelper.a was not compiled with -fPIC while libtestlib.so was. What is the proper way to build programs that use

I need loadLibrary two so library files on Android Studio v1.1.0

烂漫一生 提交于 2020-01-17 03:35:29
问题 I had an examples for two so files for one app which is very simple, and I just have tried to do same code on Android Studio 1.1.0. I refer many web sites, so I put my so files on "src/main/jniLis/[arch]/" and run my app. But it was failed. This is error log from ddms. UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.mdsedu.twolibstatic-2/base.apk"],nativeLibraryDirectories=[/data/app/com.mdsedu.twolibstatic-2/lib/arm, /vendor/lib, /system/lib]]] couldn

Including UWP project in WPF project raises runtime errors

帅比萌擦擦* 提交于 2020-01-16 16:50:28
问题 Project I work on need to show UWP control from UWP library inside of WPF window. Here is the document page on which I had based my work (check section for adding custom UWP control): https://docs.microsoft.com/en-us/windows/communitytoolkit/controls/wpf-winforms/windowsxamlhost#add-a-custom-uwp-control Had setup WPF window and it shows standard UWP controls (like button) at the runtime just fine. However, when I include UWP project, WPF window throws exception at start (at the moment of

Including UWP project in WPF project raises runtime errors

梦想与她 提交于 2020-01-16 16:50:13
问题 Project I work on need to show UWP control from UWP library inside of WPF window. Here is the document page on which I had based my work (check section for adding custom UWP control): https://docs.microsoft.com/en-us/windows/communitytoolkit/controls/wpf-winforms/windowsxamlhost#add-a-custom-uwp-control Had setup WPF window and it shows standard UWP controls (like button) at the runtime just fine. However, when I include UWP project, WPF window throws exception at start (at the moment of