Before I begin, similar questions but not exact:
http://stackoverflow.com/questions/41405/working-with-common-utility-libraries,
http://stackoverflow.com/questions/407739/what-to-include-in-a-utility-library.
I have recently starting working with our company's internal C# libraries, which include Common.dll and Utilities.dll; pretty sta...
I was compiling a .NET application targeting x86-64; however, the application references a 32-bit dll. The executable compiles fine, but Visual Studio throws a warning:
Referenced assemply 'path/to/dll' targets a different processor than the application.
Now, my understanding has been that you can't simply link a 64-bit executable...
I am trying to link something I wrote to an existing shared library.
I using gcc 3.2.3 on RedHat 3. When I get to the link phase I get an error that says:
object_files_linux/hvm_example.o(.text+0x233):~/hvm_example.cpp:254: undefined reference to `xoc::hvmapi::id(std::basic_string, std::allocator > const&)'
I have run the nm command on...
I'm having problems with LD_LIBRARY_PATH at link time (this question has nothing to do with run time).
The link line looks like this when I run make (this is a Linux system using g++ version 4.1.x):
g++ a.o b.o c.o -o myapp \
-L/long/path/to/libs/ \
-L/another/long/path/ \
-labc -ldef -lghi
The -l options reference shared librarie...
In short:
Is there a way to create a static library in Xcode such that when clients link with that library, they also link with the frameworks upon which that library depends?
The problem:
We have a shared Xcode project which contains multiple static library targets containing all of our common code. E.g., If a project wants to use th...
Hi all SharePoint Professional,
I am using Windows 2003 Server to share the file in our environment , as SharePoint Services 3.0 is free for Winodws 2003 Server , i would like to configure the ShareFolder available in SharePoint Document Libraries, I have already install sharepoint services in the server ,also in my shared folder proper...
i have a c-application which should load a shared object at runtime and call an arbitrary function of the shared object. The shared object was build by the user and gave me the signature of his function.
int func(int a, int b, double c)
i use dlopen to load the object and dlsym to get a function pointer to the shared object function...
Hi,
I am new to iphone development and xcode, coming primarily from a unix/windows C background.
I have some utility functions like:
void myVibratePhone()
{
AudioServicesPlaySystemSound (kSystemSoundID_Vibrate) ;
}
that I'd like to use across all my projects.
In C, I'd give each project the header file, and link in the .OBJ f...
I have built libshared.so with is dependent on libshared_dependent.so
Now, I am compiling app.bin which is using libshared.so, Now at compile time gcc wants me to specify -lshared_dependent other wise it gives error that some symbols not found.
Is there any way by which, At compile time I don't need to specify -lshared_dependent, I wan...
I am maintaining a small application that has some plugin-like functionality, which is implemented through runtime-loaded dynamic modules.
Specifically, since it's a Gtk+ app, I'm using gmodule, but the question applies to dlfcn.h / dlopen() based dynamic library loading just as well.
My main program has a single, global struct variab...
I have been thinking about setting up some sort of library for all our internally developed software at my organisation. I would like collect any ideas the good SO folk may have on this topic.
I figure, what is the point in instilling into developers the benefits of writing reusable code, if on the next project the first thing develope...
Say a shared library contains the following lines:
const char* const arr[] =
{
"one",
"two",
"three"
};
1) Can an application link to this library and use the symbol "arr"?
2) Is binary compatibility broken if a new element is added to the definition?
3) How about if one of the string literals is changed?
4) Why (not)?
Cheer...
It's not very hard to break binary backwards-compatibility of a DSO with a C++ interface. That said, is there a static analysis tool, which can help detecting such ABI breaks, if it's given two different sets of header files: those of an earlier state of the DSO and those of the current state (and maybe DSOs as well)? Both free and comme...
I am developing a shared library(.so) and dll. I have a global variable which is updated in multiple threads. So I have mutex lock for synchronization.
I am not clear whether global data in shared library is shared across process. If it is then I need to use semaphores for synchronization. As I understand global variables are part of da...
What is the equivalent of Linux's ldd on windows?
...
Say I have a library libfoo.so.1, which depends (according to ldd) on libbar.so.1. However, libbar.so.1 is not available at the moment. My app needs to call a function in libfoo.so.1 which doesn't require libbar.so.1 at all.
Is there a way to load libfoo.so.1, resolve the function symbol and then call it without having libbar.so.1 to sa...
All the standard shared libraries on my Linux system (Fedora 9) specify ELFOSABI_NONE (0) as their OSABI.
This is fine - however I've received a shared library from a supplier where the OSABI given in the ELF header is ELFOSABI_LINUX (3).
This doesn't sound like an unreasonable value for a shared library intended for a Linux system, ho...
Hi,
I have a question on shared libraries vs static libraries loading time.
Assume that i have a executable foo.exe which uses liba, libb, libc. Also at a given time there are more than 10 instances of the executable running on the machine.
Now if the above 3 libraries were shared libraries :
1st Insance is loaded into RAM : The tim...
Libraries don't always contain the _mcount symbol, but applications do (you can verify this with gobjdump or the nm utility). I've read that _mcount is used to implement profiling, but the symbol is present even when profiling is disabled and optimization is enabled (-O2). Does it serve some other additional purpose?
Update: I am on Sol...
Assume a executable foo.exe is built based on static libraries and 6 instances of this foo.exe are running at the same time on the a machine.
Since all the code is same (read only part) except for the read write part on the RAM, will there be any sharing amongst these 6 instances in the RAM to improve performance ?
I do know that if th...