-rpath is for the C-program ("simple") itself, not passed to the "exec"ed program.
But you can define the LD_LIBRARY_PATH environment variable in the C-program:
hi, every body. i have in trouble that how to load a dynamic library by hand.
for example, i know how to generate a dynamic library and how to link a dynamic library in makefile.
generate a dynamic library:
add -dy -G behind cc
link a dynamic library in makefile:
add -dy -Bdynamic behind cc... (0 Replies)
Hi,
I wonder how can we override the dynamic library loaded by ld on start up.(dynamic linked application). so that linker uses the new library to find symbols.
Is it possible to do.
Cheers. (4 Replies)
Hi All
Could anyone help in giving a little background to the following runtime error.
/usr/lib/pa20_64/dld.sl: Mmap failed due to errno: 13.
Seen when executing a 64-bit ELF executable.
Thanks
Ed (3 Replies)
Hi,
I created two library libsum.so and libproduct.so. In the libproduct.so is defined function "product" that use function "sum" defined in libsum.so. So libproduct depends on libsum.
In main function I called product function by a dlopen request. Unfortunaly, when I execute program I have an... (5 Replies)
Hi every body
I have a problem like that "Dynamic linker error" message.
I can't load many of programs in sco unix openserver 5.0.6.
I guess this problem appear after my last effort to install "SCO Development System" package.
How can I fix this problem?
would you please help me ? (1 Reply)
This so basic that it should work.... Any ideas would be appreciared. Using a number directly in the sqrt allows it to compile.
primrose > cat a.c
#include <stdio.h>
#include <math.h>
int main(void)
{
double abcd=9;
printf("%f\n",sqrt(abcd));
}
primrose > gcc a.c
Undefined first... (2 Replies)
hello
I apologize if my question bothers you
I work on a code developed in C + + which worked well on mac os, this code will help create libraries *.so from *.cc and *.h I used this as flags:CXXFLAGS = -g -O2 -fPIC -Wall -ldl -D_GNU_SOURCE ,CXX := g++ and $(CXX)-shared -o $(LIBNAME) $(CLIBLIB)... (0 Replies)
I have a build where I wish to link against and load a specific version of a library and a different version of the same library is installed on the system. I'm using a -L option to point to the version that I wish to link against but gcc still seems to choose the installed version. Is there a way... (4 Replies)
Discussion started by: Richard Johnson
4 Replies
LEARN ABOUT CENTOS
redland-config
redland-config(1) General Commands Manual redland-config(1)NAME
redland-config - script to get information about the installed version of Redland
SYNOPSIS
redland-config [--cflags] [--help] [--libs] [--libtool-libs] [--prefix[=DIR]] [--private-libs] [--version-decimal] [--version]
DESCRIPTION
redland-config is a tool that is used to determine the compile and linker flags that should be used to compile and link programs that use
the Redland RDF library.
OPTIONS
redland-config accepts the following options:
--version
Print the currently installed version of redland on the standard output.
--version-decimal
Print the currently installed version of redland as a decimal integer.
--libs Print the linker flags that are necessary to link a redland program. This excludes linker arguments used to build the librdf
shared library.
--libtool-libs
Print the flags that are necessary to link a redland program with libtool.
--private-libs
Print the linker flags that are necessary to build the librdf shared library. This option is not usually needed because the librdf
shared library has already been dynamically linked against these libs.
--cflags
Print the compiler flags that are necessary to compile a redland program.
--prefix=PREFIX
If specified, use PREFIX instead of the installation prefix that redland was built with when computing the output for the --cflags
and --libs options. This option must be specified before any --libs or --cflags options.
SEE ALSO redland(3),
AUTHOR
Dave Beckett - http://www.dajobe.org/ <http://www.dajobe.org/>
2008-09-07 redland-config(1)