Hi,
I am creating a shared library:
g++ -shared -Wl,-soname,libmylib.so.1 -o libmylib.so.1.0.1 myobject.o ${LibFlags}
where myobject.o is created from:
g++ -c -fPIC -Wall ${CFLAGS} ${INCLUDES} myobject.cpp
when I run 'nm | grep CAN' on myobject.o, it returns nothing.
I have a shared library that I'm trying to build, which normally links with another share library. However, this "other" library is being provided by a 3rd party currently, as a static archive (.a file).
Is it possible to statically link-in this other library's .a archive?
I am making an rpm of my shared library. In the .spec file, I am writing the normal install commands in %install part ,making some soft links, running ldconfig on %post and %postun. I am not building library in rpm because I already have compiled and stripped library with me.
Hi,
I get the following error:
"linker input file unused because linking not done"
When executing the following:
1)
g++ -c -fPIC -Wall ${CFLAGS} ${INCLUDES} ${LDFLAGS} a.cpp
I am trying to create an object file that is linked statically linked to libraries in a 3rd party library, so that I can later execute the command:
2)
I am building a Shared Library (.so) on Linux and I am compiling and linking in an object that is not dynamically linking in certain functions. These functions are "extern 'C'" functions. They are appearing in the normal symbol table of the shared object but not the external functions list or the dynamic functions list. I am compiling and linking using g++.
Hi,
I have tried for weeks. I am creating a shared library from two object files a.o and b.o.
Both a and b are classes that depend on a third-party library and class b wraps class a.
and therefore, both a.o and b.o have the same globals defined from the third-party api.
So I create a.o with
I have a question regarding specific inclusion of functionality using shared libraries. I have my own small in-code profiler, that I am using in multiple projects so usually include as a shared library. Originally I wanted to turn of the profiling code using compile time flag. For example:
#ifdef PROFILEAPP
class Profiler {
static void start() { ... }
static void stop() { ...
I am using a static library witch developed by using QT(necessitas)。Some issues block my work, so i am writing to ask for some advice from you. The strange issue i met is the
static library and libQtCore.so is linked successly with my Android native
shared library (which compiled by using ndk-r8b), but crash will occur at libQtCore.so.
Can this be done?
I'm trying to compile a static binary on a 32 bit machine which can run anywhere.
My build environment is Slackware 13.37 with rebuilt versions of certain library packages (SDL being the main one) which include the ".a" static library files.