shared-libraries

How do i find out what all symbols are exported from a shared object?

I have a shared object(dll). How do i find out what all symbols are exported from that? ...

Should destructors be exported in Windows DLL Libraries?

Hey guys another quick question here that got me thinking. In generating windows dll dynamic libraries, you are asked declare which functions should be exported so that some functions maybe left private to the dll and not accessible by other applications. I haven't seen anything mentioned regarding whether destructors need to be export...

Can a C++ Static Library link to shared library?

Say I have a static C++ lib, static.lib and I want to call some functions from a C++ shared lib, say shared.lib. Is it possible? Now assume that I have another shared lib, say shared2.lib which links to static.lib but does not link to shared.lib. Does the linker automatically link shared2.lib to shared.lib in this case? I am using Micr...

Tomcat on Windows server woes

Hi, Synopsis: When calling an executable that links to shared libraries from Java code on Tomcat, I get errors on Windows 2003 whereas the executable works great on a command prompt. I wanted to do this in Linux, but, alas, got outvoted and have to implement it using Windows Server 2003. Here it goes, I have a simple Java code running...

C++ shared library shows internal symbols

I have built a shared library (.dll, .so) with VC++2008 and GCC. The problem is that inside both libs it shows the names of private symbols (classes, functions) and they weren't exported. I don't want my app to display the name of classes/functions that weren't exported. Is any way i can do that? In GCC i did: Compiled with -fvisibilit...

dyld error: image not found

Hi everyone, I got this error message while running my application on simulator. Dyld Error Message: Library not loaded: /System/Library/Frameworks/UIKit.framework/UIKit Referenced from: /Users/thomasschober/Excuse Me/build/Distribution-iphonesimulator/Excuse Me.app/Excuse Me Reason: image not found I am not able to ...

Is there an automated way to figure out Shared Object Dependencies?

Short: I'm looking for something that will list all unresolved dependencies in an SO, taking into account the SOs that are in it's dependencies. Long: I'm converting a lot of static-compiled code to Shared Objects in Linux- is there an easy way to determine what other SOs my recently compiled SO is dependent on besides trial & error wh...

How to link to a shared library without lib* prefix in a different directory?

I have to link my code to a shared library without the lib prefix. (say, foo.so) The first problem is -l option does not find the file. So I tried directly including this file to the last compilation like this: gcc a a.o /PATH/TO/FOO/foo.so But in this case, a is hard linked to foo.so as an absolute path as seen in "ldd a": /PATH/TO/...

problems with global variables in shared library project (C++)

i have a problem with global variables in a c++ shared library project. my library has to be working as a standard g++ shared library (.so) as well as a dll. i did this by creating files libiup_dll.cpp and libiup_dll.h, where i have something like #ifdef BUILD_DLL // code for the dll: wrapper functions around the classes in my shared l...

Debugging/tracing inside a shared library during runtime?

Hello everyone, I'm trying to understand how a certain library works. I've compiled it with my added prinfts and everything is great. Now I want to stop the example program during runtime to look at the call stack, but I can't quite figure out how to do it with gdb. The function I want to break on, is inside a shared library. I've revie...

How can I tell, with something like objdump, if an object file has been built with -fPIC?

How can I tell, with something like objdump, if an object file has been built with -fPIC? Thanks, -Crazy Chenz ...

Library design: Big or small assemblies?

In the same vein as this question, but not entirely the same: When designing a library to be consumed by someone else, is it best to split it into as many functional unit assemblies as would make sense, or should something like toplevel namespaces be a good guide as to how to split it up, or should it all go into one huge assembly? I'm...

List of libraries available on a stock installation of OS X?

I'm trying to compile a version of convert (one of the ImageMagick tools) for distribution with a Cocoa app I'm writing, and I've mistakenly bundled a version that relies on shared libraries my users don't have (twice, already). Thus, I'm trying to pare down the list. After stripping out everything I didn't need, running otool -L conve...

Shared library internal

I wish to know how the Shared library works I am asking in terms of Symbol table reference. Is it like when we include a shared library it exports the Symbol table to process then based on some pointers we execute the respective function. What is the meaning of Shared library Strip ? Edit :- I wish to know that how shared library works...

Mixed up 32Bit and 64bit shared object / libraries

Hi, Accidentally I mixed up between 32Bit and 64Bit library files on my x86 embedded Linux system. I'm now trying to find out which .so-File could be the wrong one. Do you know any tool to analyze .so files? In my strace logs I found calls to fstat64(). Which .so-file contains the fstat() routine? Thanks ...

Repository layout (or hook) for branching shared libraries (and keeping your sanity)

We're using subversion, (the question could be applicable to many version control systems, but subversion is the one I really care about.) Our repository layout looks like so: (Layout A) Web branches tags trunk Libraries Foo branches tags trunk Bar branches tags trunk WindowsClient branches tags trunk DB branch...

Where should JS library reside (host)

JS library like JQuery can be linked directly from other site (e.g. google). Usually I use <script type="text/javascript" src="/js/jQuery.min.js"></script> But I can use <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt; or similar. I like to take full control o...

How to avoid conflict between JQuery and Prototype

If a page has both JQuery and Prototype then I got conflict. There is a option to disable $ sign for JQuery so there is no conflict but, I have to use keyword JQuery instead of $. I wonder if there is any option for Prototype to solve this conflict. Is there any way to use both libraries without compromising their benefit or short keywo...

Why is the startup of an App on linux slower when using shared libs?

On the embedded device I'm working on, the startup time is an important issue. The whole application consists of several executables that use a set of libraries. Because space in FLASH memory is limited we'd like to use shered libraries. The application workes as usual when compiled and linked with shared libraries and the amount of FLA...

Set the Catergory/group for webpart on deployment using WSPBuilder

Hi, I have developed an event handler,called TaskListEventHandler, for the Task list ((ItemAdding, ItemDeleting, ItemUpdating) as feasture using the WSP Builder project template, and I have also added a web part, called RegisterEventHandler, which will be used to bind(register) the events to a list. The webpart is WSP Builder template...