shared-libraries

using system.windows.forms reference not showing up asp.net 4.0

情到浓时终转凉″ 提交于 2019-12-24 06:59:08
问题 I am trying to add a reference to the library stated in the question. But it is throwing an error on the 'windows' section of the library reference. Can anyone help me. Thanks! 回答1: Step 1: Go to "Solution Explorer" Step 2: Right click on "Add reference" Step 3: Search in the ".net" tab for the reference for "System.Windows.dll" Or "System.Windows.Forms.dll" (don't know which one is present there but I would prefer the later) and add it. This should resolve your problem. 来源: https:/

An executable and a shared library dependent on a same statically linked library

心已入冬 提交于 2019-12-24 05:59:48
问题 Suppose you're developing a shared library libshared.so . And you have a static library libstatic.a with some internal classes and functionality you need. You'd like to link it to your .so like this: g++ -o libshared.so -shared myObj.o -lstatic Also you have an executable.sh which will use your .so and dynamically open it in the runtime dlopen("libshared.so", RTLD_NOW) You know this executable was as well statically linked against libstatic.a (but you're not sure the version of the library is

An executable and a shared library dependent on a same statically linked library

徘徊边缘 提交于 2019-12-24 05:59:07
问题 Suppose you're developing a shared library libshared.so . And you have a static library libstatic.a with some internal classes and functionality you need. You'd like to link it to your .so like this: g++ -o libshared.so -shared myObj.o -lstatic Also you have an executable.sh which will use your .so and dynamically open it in the runtime dlopen("libshared.so", RTLD_NOW) You know this executable was as well statically linked against libstatic.a (but you're not sure the version of the library is

Linux: Is it possible to sandbox shared library code

孤街醉人 提交于 2019-12-24 05:15:10
问题 I have a process that needs to be extensible by loading shared libraries. Is there a way to run the shared library code in a sandbox environment (other than an external process) so that if it segfaults it doesn't crash the process and has limitations on how much memory it can allocate, the cpu cycles it can use, etc. 回答1: I don't think there is a clean way to do it. You could try: Catching segfaults and recovering from them (tricky, architecture specific, but doable) Replacing calls to malloc

Passing python strings to Fortran subroutine using ctypes

南笙酒味 提交于 2019-12-24 04:48:14
问题 I'm trying to pass arguments to a Fortran subroutine in a shared library using ctypes. Now here's my simple fortran code: MODULE test_module INCLUDES SUBROUTINE fstr_test(file_or_extension, ierr, iopen) IMPLICIT NONE INTEGER, INTENT(out) :: ierr INTEGER, OPTIONAL :: iopen CHARACTER(LEN=*), INTENT(in) :: file_or_extension WRITE(6,*) file_or_extension,ierr,iopen RETURN END SUBROUTINE fstr_test END MODULE test_module I compile this with gcc -shared -fPIC -o libtest.o fstr_test.f90 This seems to

Static library with dynamic dependencies

◇◆丶佛笑我妖孽 提交于 2019-12-24 04:38:11
问题 I have come across quite a few similar questions, however I didn't really get my answer. So, I have an App.exe that depends on Static.lib, which in turn depends on a dynamic library Dynamic.dll. In Static.lib I link to Dynamic.lib import library. I do understand that now the App.exe has to have Dynamic.dll in it's directory in order to run successfully, however when I try to link the code I get an error that the App project can't find Dynamic.lib import library. My question is, why does the

Python on MacOS “dyld: Library not loaded” - error

情到浓时终转凉″ 提交于 2019-12-24 04:26:30
问题 I am trying to run a python script that executes few API calls and Kafka logic but getting following error: dyld: Library not loaded: @executable_path/../.Python Tried brew update && brew upgrade and also with both Python2 and Python3 but still getting same error. What could be the cause and how to fix it? 回答1: Hi I got this issue too after brew upgrade, I solved with delete virtualenv find myvirtualenv -type l -delete then recreate virtualenv virtualenv myvirtualenv Reference: http://www

Where does mysql save the path for gearman mysql udf files?

吃可爱长大的小学妹 提交于 2019-12-24 04:16:28
问题 I have been trying to use gearman mysql udf. I have downloaded tarball from http://gearman.org/index.php?id=download and installed it with the instructions given on http://gearman.org/index.php?id=mysql_udf_readme I am trying to create the gman_do function in mysql, but I am getting some error The Error is- mysql> create function gman_do returns string soname "libgearman_mysql_udf.so"; ERROR 1126 (HY000): Can't open shared library 'libgearman_mysql_udf.so' (errno: 22 /usr/local/lib/libgearman

installing an Ocaml hump library on mutualized server

大城市里の小女人 提交于 2019-12-24 04:09:18
问题 I am trying to use the Ocaml csv library. I downloaded csv-1.2.3 and followed the installation instructions after installing findlib: Uncompress the source archive and go to the root of the package, Run 'ocaml setup.ml -configure', Run 'ocaml setup.ml -build', Run 'ocaml setup.ml -install' Now I have META , csv.a , csv.cma , csv.cmi , csv.cmx , csv.cmxa , csv.mli files in ~/opt/lib/ocaml/site-lib/csv repertory. The shell command ocamlfind list -describe gives csv A pure OCaml library to read

java.lang.UnsatisfiedLinkError: dlopen failed: library “/Users/…” not found

自古美人都是妖i 提交于 2019-12-24 03:55:36
问题 I want to add another lib into android-ndk hello-libs example. In CMakeLists.txt , I add: # this is from the hello-libs sample code add_library(lib_gperf SHARED IMPORTED) set_target_properties(lib_gperf PROPERTIES IMPORTED_LOCATION ${distribution_DIR}/gperf/lib/${ANDROID_ABI}/libgperf.so) ########## I add this after the sample code: ########### add_library(lib_py SHARED IMPORTED) set_target_properties(lib_py PROPERTIES IMPORTED_LOCATION ${distribution_DIR}/gperf/lib/${ANDROID_ABI}/libpython