Hello,
I have got four classes A, B, C and D.
Class A has a member b of class
B.
Class B has a member c of class C.
A has a member D* dpointer;
This hierarchy has to be preserved (in fact this is a GUI with app, window, panel as A, B and C).
Now B and C must use a method from *dpointer.
Is there something more elegant than givin...
I need to activate this mail() function is there any way of doing this only on my hosting account (being on shared account)?
Thanks!
...
I have a server and a client written in C. I try to load a shared library in the server and then pass library function pointers to the client. This way I can change the library without have to compile the client.
Because of every process has its own separate memory space, I wonder if it is possible to load a shared library on a shared m...
Hello All,
I'm new in MPI programming world and i'm wondering if there is some variables shared between MPI processees and accessible from any process without having to send/receive them ?
Thanks
...
-I am trying to compile a netsnmp mib and extend the functionality of the snmp agent.
When I try to start the daemon and load the shared object (*.so) , the daemon complains about undefined symbols.
"dlopen failed: Filename.so: undefined symbol: netsnmp_container_table_row_extract"
On further prodding #nm -D -u Filename.so prints out...
Hi All,
I have an existing webapp and i'm attempting to setup BlogEngine .Net to share the membership tables
Everything seems to work.. accept i can see that the Membership.ValidateUser call in blogengine returns false! While the other apps returns true.
I'm at a loss.. Membership.GetUser called from both apps returns the correct user...
What is the delay load equivalent in unix based system.
I have a code foo.cpp, While compiling with gcc I link it to shared objects(totally three .so files are there.).Each of the .so file for different option.
./foo -v needs libversion.so
./foo -update needs libupdate.so
I need the symbol for those libraries should be resolved only a...
I have two different C# applications that are running at the same time.
I would like both of them to be able to access the same "instance" of a DLL (also in C#).
The DLL holds some data that I'd like to return to whichever of the two applications is asking for it.
My DLL is thread-safe so I was hoping this would be possible but I'm no...
two shared libraries liba.so and libb.so. liba.so uses libb.so. All c files are compiled with -fPIC. Linking uses -shared. When we call dlopen on liba.so it cannot find symbols in libb.so...we get the "undefined symbol" error. We can dlopen libb.so with no errors. We know that liba is finding libb because we don't get a file not fo...
Hi,
I use SysV shared memory to let two processes communicate with each other. I do not want the code to become to complex so I wondered if I really had to use semaphores to synchronize the access to the shared memory. In my C/C++ program the parent process reads from the shared memory and the child process writes to the shared memory. ...
Could you please explain, how linking with -l option against .la files works?
As far as my experience reaches - i have only linked against static library (.a) files.
Now i took a look at some Qt generated Makefiles and cant figure out, how linker figures out to use/open libQtCore.la file, when -l QtCore switch is specified, instead of ...
my app crashes with a null pointer exception on the code below.
i have an xml preference file under res/xml/defaults.xml
Any idea why it's crashing?
public class Preference extends Activity {
public Preference()
{
}
public String getPreference(String key)
{
//it still crashes here
SharedP...
My android application has two kinds of preferences:
1) I have user preferences defined in res/xml/preferences.xml so that users can manage their preferences with a PreferenceActivity.
2) I'd like to define another file for global configuration preferences of my app.
What is the best way to manage my app config preferences? Should I c...
I have a third party applet that makes use a csv file, let's call it file.csv, and makes use of all of the columns. I also have a third party swf object that makes use of file.csv but only makes use of 20% of the columns. The initial decision was to use the same file for both because it would result in easier maintenance.
My question is...
Is it possible to decompile third-party shared libraries built for solaris into C code?
...
I have some resource which I'd like to protect from concurrent usage both by threads in the same process and among different processes.
What is the "right" way of doing it in *nix?
E.g. we want to write to a file from a multithreaded app, which once in a while forks some subprocesses. How to ensure that each thread has exclusive access ...
In Objective-C there is the Alloc/Init metaphor. They've also added a shared convenience method called 'new' that internally just calls both in succession. And if I create a subclass of NSObject called FooClass, FooClass picks up those shared methods, including 'new'.
BUT... how the heck is that implemented??
It can't simply delegate...
Hi
I'm new to Android ndk and i didn't understand yet which are the differences between static and shared library. Could you explain me what these differences are? When developing a library how could i choose one of them?
Thanks a lot
...
I am writing a program in windows in C++ for which users will be able to compile extensions in the form of dynamic-link libraries (windows) or shared object files (linux). On windows, you use the LoadLibrary function to load a dll. Is it possible to do the same for .so files on windows? And vice versa, load .dlls on linux?
...
I have an existing git repo (a bare one) which has up to this point only been writable by me. I want to open it up to some UNIX user group, foo, so that all members of foo can push to it. I'm aware that I can easily set up a new git repo with:
git init --bare --shared=group repodir
chgrp -R foo repodir
But I need the equivalent oper...