shared-objects

Unable to load any package in R (unable to load shared object)

醉酒当歌 提交于 2019-11-29 15:35:39
I have been using R for the last 2 years. I tried to start the program yesterday to run one of my scripts and the packages that I am using failed to load. I am not sure what happened as it was working fine earlier. I tried to uninstall and re-install the software but it wasn't of any help. Here's the error I get when I require()/library() a package (for example ggplot2): >require(ggplot2) Loading required package: ggplot2 Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to load shared object '//mypath/myuser/data/Documents/R/win-library/3.2/digest/libs/x64/digest.dll':

shared object can't find symbols in main binary, C++

拟墨画扇 提交于 2019-11-29 08:11:42
问题 I'm experimenting with making a kind of plugin architecture for a program I wrote, and at my first attempt I'm having a problem. Is it possible to access symbols from the main executable from within the shared object? I thought the following would be fine: testlib.cpp: void foo(); void bar() __attribute__((constructor)); void bar(){ foo(); } testexe.cpp: #include <iostream> #include <dlfcn.h> using namespace std; void foo() { cout << "dynamic library loaded" << endl; } int main() { cout <<

Is it possible to store images in the SharedObject of Flash?

谁说我不能喝 提交于 2019-11-29 07:40:32
Is it possible to store a Image in a SharedObject in Flash? It would be nice if it would work. I need to "store" Images locally but it seems not to be supported by Flash... So I 'ld like to put those images in a SharedObject that can be saved... but does it work with images? I tried it with a Bitmap but if I want to read and add it to the stage it says that the Object can't be converted to a Bitmap... var image:Bitmap = //some awesome image; sharedObject = SharedObject.getLocal("img"); sharedObject.data.img = image; sharedObject.flush(); Error here -> sharedObject = SharedObject.getLocal("img"

Unable to load any package in R (unable to load shared object)

 ̄綄美尐妖づ 提交于 2019-11-28 08:56:51
问题 I have been using R for the last 2 years. I tried to start the program yesterday to run one of my scripts and the packages that I am using failed to load. I am not sure what happened as it was working fine earlier. I tried to uninstall and re-install the software but it wasn't of any help. Here's the error I get when I require()/library() a package (for example ggplot2): >require(ggplot2) Loading required package: ggplot2 Error in inDL(x, as.logical(local), as.logical(now), ...) : unable to

How can you determine what Perl module is causing “undefined symbol: Perl_Tstack_sp_ptr?”

China☆狼群 提交于 2019-11-28 03:23:28
问题 I'm trying to run a Perl script, but it is returning: /usr/bin/perl: symbol lookup error: /usr/local/groundwork/perl/lib/5.8.8/x86_64-linux-thread-multi/auto/IO/IO.so: undefined symbol: Perl_Tstack_sp_ptr Is there any way to determine what Perl module is causing this? 回答1: IO.so is the binary component of IO. The modules of this distribution are also part of the perl distribution (i.e. they are dual-lived). This type of error usually occurs when using a binary compiled using one version of

Is it possible to store images in the SharedObject of Flash?

别说谁变了你拦得住时间么 提交于 2019-11-28 01:12:46
问题 Is it possible to store a Image in a SharedObject in Flash? It would be nice if it would work. I need to "store" Images locally but it seems not to be supported by Flash... So I 'ld like to put those images in a SharedObject that can be saved... but does it work with images? I tried it with a Bitmap but if I want to read and add it to the stage it says that the Object can't be converted to a Bitmap... var image:Bitmap = //some awesome image; sharedObject = SharedObject.getLocal("img");

How do I load a shared object in C++?

微笑、不失礼 提交于 2019-11-27 03:41:48
I have a shared object (a so - the Linux equivalent of a Windows dll) that I'd like to import and use with my test code. I'm sure it's not this simple ;) but this is the sort of thing I'd like to do.. #include "headerforClassFromBlah.h" int main() { load( "blah.so" ); ClassFromBlah a; a.DoSomething(); } I assume that this is a really basic question but I can't find anything that jumps out at me searching the web. There are two ways of loading shared objects in C++ For either of these methods you would always need the header file for the object you want to use. The header will contain the

ld cannot find an existing library

十年热恋 提交于 2019-11-26 14:03:40
I am attempting to link an application with g++ on this Debian lenny system. ld is complaining it cannot find specified libraries. The specific example here is ImageMagick, but I am having similar problems with a few other libraries too. I am calling the linker with: g++ -w (..lots of .o files/include directories/etc..) \ -L/usr/lib -lmagic ld complains: /usr/bin/ld: cannot find -lmagic However, libmagic exists: $ locate libmagic.so /usr/lib/libmagic.so.1 /usr/lib/libmagic.so.1.0.0 $ ls -all /usr/lib/libmagic.so.1* lrwxrwxrwx 1 root root 17 2008-12-01 03:52 /usr/lib/libmagic.so.1 -> libmagic

How do I load a shared object in C++?

霸气de小男生 提交于 2019-11-26 10:36:16
问题 I have a shared object (a so - the Linux equivalent of a Windows dll) that I\'d like to import and use with my test code. I\'m sure it\'s not this simple ;) but this is the sort of thing I\'d like to do.. #include \"headerforClassFromBlah.h\" int main() { load( \"blah.so\" ); ClassFromBlah a; a.DoSomething(); } I assume that this is a really basic question but I can\'t find anything that jumps out at me searching the web. 回答1: There are two ways of loading shared objects in C++ For either of

ld cannot find an existing library

和自甴很熟 提交于 2019-11-26 05:55:27
问题 I am attempting to link an application with g++ on this Debian lenny system. ld is complaining it cannot find specified libraries. The specific example here is ImageMagick, but I am having similar problems with a few other libraries too. I am calling the linker with: g++ -w (..lots of .o files/include directories/etc..) \\ -L/usr/lib -lmagic ld complains: /usr/bin/ld: cannot find -lmagic However, libmagic exists: $ locate libmagic.so /usr/lib/libmagic.so.1 /usr/lib/libmagic.so.1.0.0 $ ls -all