how to link shared library against other shared library in linux ?
My application dynamically loads liba.so (with dlopen). liba.so uses libb.so so I want to link liba.so against libb.so. How to do this in Linux? Thanks in advance. ...
My application dynamically loads liba.so (with dlopen). liba.so uses libb.so so I want to link liba.so against libb.so. How to do this in Linux? Thanks in advance. ...
Hi friends, I am using shared delegate for getting data on url connection. I getting a memory leak on my code. Can anybody please tell me what i have done wrong. Thanks in advance. Analyser Warning: /Users/sathish/Documents/XXX 20100908 ManageMem/Classes/Data Download/XXX DataConnect.m:68:22: warning: Potential leak of an object alloc...
I am trying to create a shared library on Windows. I am able to create this shared library on linux but on windows I get linker errors. I am using the MinGW G++ 4.5 compiler. I will first present the source code to the example on linux , and then present the file which I tried to change on windows. /home/nxd/Progs/C++/shared-lib>cat lib...
I need run a local demo of a program that have a harcoded path to a .mbd database in the format: \\ComputerName\SharedFolder\db.mbd I can't change the name of local machine because is needed for logging purposes. Thanks in advance ...
I have a Server/Client project with WCF communications and sharing a dll between both with Contracts and objects: Service | Shared Objects | Client For my Objects I added attributes for use in the propertygrid : [DataMember] [DisplayName("Javascript File Name")] [Description("The browseable path of the Javascript fil...
Okay, so I have 2 projects for a game. One is the server and one is the client. I keep the shared units into a shared folder that I use to include in my client/server project. There is a problem however: I have a shared file that needs a different file for client / server. Example: mySharedLib needs to print to the console, however the c...
I run a web application in apache. My application try to execute a executable written by QT. But I always encounter "cannot open shared object libQtWebkit.so: No such file or directory" error. I can run this executable in shell without any problem. I tried set LD_LIBRARY_PATH but still not working. How can I set shared library path ...
I am trying to implement shared memory on embedded device with uClinux. My C source #include <stdio.h> #include <sys/shm.h> #include <sys/stat.h> #include <sys/socket.h> #include <errno.h> //using namespace std; int main() { int segment_id; segment_id = shmget(04, getpagesize(), IPC_CREAT | 0666); printf("Page...
Hi, I have a Silverlight 4 application where I am making use of shared classes. In the .Web project, I have a class called "X.Shared.cs". This class has three string properties. When I build the application, it gives an error saying "The type 'X' already contains a definition for 'Y'". It seems that the properties in the generated code ...
Background: I'm trying to develop a simple game similar to Zelda (NES) in C as a way to learn C. I've come to the conclusion that having all of the game data in a single file is not ideal. So what I'd like to do is break up each "area" into it's own module. This "area" module will describe to the main program its properties, such as ...
I hav a a shared library lib.so containing a class Foo. I'm dynamically loading (with dlopen on UNIX) lib.so. After loading I want to create an instance of Foo. Can I simply use new operator to create an object of Foo, or I would have to create an exported factory method placed in lib.so that will create that object for me? Actually t...
Greetings, I hope someone has the patience to read this. I have a setup at hand, which is slightly confusing me. I have a C source code directory generated by an Eiffel Compiler. I want to use this output from Java, so I need a DLL for JNI, in which I'll implement some JNI functions. When I compile the C code, it gives me a static libr...
Hi all, I'm trying to compile c shared library from matlab. my matlab code uses a lot of the image processing functionality. So, compiling goes fine, but when i call the dll from my application, i get messages like, "Undefined function or method 'XYZ' for input arguments of type double". I have verified my arguments are ok -- it's not...
Greetings, I know there are similar questions with answers, and some of them are being offered to my as I type this. However, none of them seem to offer a solution without absolute paths. I have two projects in an SVN project, and they need use some cpp and h files in a shared way. I simply could not find a way of avoiding absolute pa...
I am experimenting with openMP for large data processing and relatively new to it. My input data set is huge and so I divided it into multiple subsets and each thread working on the subset of data. Each dataitem in the subset is acted up on by the thread. If one of the threads fails during its operation on any dataitem, i would like to t...
Hi, I was looking for a way to list .text section defined symbols on a C shared object loaded on a python program using the ctypes wrapper. In other words, i am trying to get a list of defined functions on a CDLL loaded object. If there is no way to do this with ctypes or library ( or python binding ), another option is a python elf pa...
Development Tool : Sun Studio 11 Flags : CXXFLAGS=-O2 -g I have two shared libraries, libA.so libB.so : /A/root.cpp /A/a.cpp are used to generate libA.so /B/root.cpp /B/b.cpp are used to generate libB.so /A/root.cpp and /B/root.cpp is identifical libA.so and libB.so will be dynamically loaded during main program running when load...
Hello. I am writing an executable which uses dlopen() (LoadLibrary() on Windows) to dynamically load a shared library. The shared library uses symbols from the executable. In Windows this is possible. Executables can export symbols: declspec(dllexport) and .def files both work. The linker, when creating the .exe, also creates the .lib ...
I have a web application I would like to deploy on a shared host. I have absolutely no possibility to manually start the server and deploy my webapp like I would do when I deploy it to localhost. I tried unpacking the WAR file and uploading it to the server, it won't work, it won't even show me my jsps like it's supposed to. Any help wou...
Hi,all: I create an application by linking the libociei.so and libcustome.so CC -o main main.cpp ../lib/libociei.so ../lib/libcustome.so and copy libociei.so libcustome.so to /usr/lib then I use ldd to check library, it shows: main ..... libcustome.so ===> /usr/lib/libcustome.so ../lib/libociei.so why libociei.so is no...