I have one C program which contains a function call.
I have been given some .so and .h files.
I want to know how to compile and link the c program with .so files.
I tried following:
Thanks in advance
Last edited by Scott; 08-28-2010 at 06:13 AM..
Reason: Code tags, please...
Hi mates,
I am trying to copile and link to C programs with command:
cc file1,file2
but i raises the error "file not found" ... am i doing the right way?
any suggestion will be appreciated.
thanks
abdul (4 Replies)
I'm runtime linking (dlopen and dlsym) to a shared object (library) I've created and after a number of function calls into the library the program core dumps (Illegal operation). This only occurs during runtime linking. If I use the same library and dynamically link during compile time everything... (3 Replies)
Hello everybody,
I am having major problems at the moment with shared libraries and I have to little knowledge of them to solve them. So please, please help me :)
Ok this is the problem:
I have a library A, which uses B and C, and C uses again D.
If I try to run A as plugin in apache,... (0 Replies)
Hi
I'm getting
ld: fatal: option -h and building a dynamic executable are incompatible
ld: fatal: Flags processing errors
When I run
ld -shared -L/usr/dt/lib -lDtSvc -o builtin.so Workspace.o
after running
gcc -fPIC -I/usr/X11R6/include -I/usr/dt/include -c Workspace.c
I'm... (6 Replies)
I'm trying to do something fairly simple but keep getting frustrating messages..
Here it is:
I have 3 files:
init.h <header>
init.c <#include <curses.h> and "init.h">
main.c <#include "init.h">
now, how can I compile my main.c using gcc?
( I have a hard time making the init.o)
... (1 Reply)
hi all !
Do I need all the shared objects to be present while compiling my code which has reference to a only one shared object, which in turn refers to another shared object.
for example I want to compile example.c which refers to sample.so
sample.so has refrence to anothersample.so
do... (2 Replies)
How do i make a library shared
say i have a library a.so which i have just compiled.
I want to make it shared how do i make it
Next Queation is what is the difference between a.so.0 a.so.1 a.so.2 & a.so :rolleyes: (1 Reply)
I'm trying to get Valgrind to work with an openmpi application in OS X. However I want to hardcode the path to a shared library called libmpiwrap-amd64-darwin.so into my application so that it is available at runtime. In Linux this is relatively simple, I would just add the option... (0 Replies)
Hi everyone I installed OpenSuse 12.3 and many development tools but when i propose build the kernel from the source (the first step make menuconfig) i saw this:
HOSTLD scripts/kconfig/mconf
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: warning: libdl.so.2,... (2 Replies)
Discussion started by: bacesado
2 Replies
LEARN ABOUT DEBIAN
magickcore-config
MagickCore-Config(1) General Commands Manual MagickCore-Config(1)NAME
MagickCore-config - get information about the installed version of ImageMagick
SYNOPSIS
MagickCore-config [--cflags] [--cppflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]
DESCRIPTION
MagickCore-config prints the compiler and linker flags required to compile and link programs that use the ImageMagick Application Program-
mer Interface.
EXAMPLES
To print the version of the installed distribution of ImageMagick, use:
MagickCore-config --version
To compile a program that calls the ImageMagick Application Programmer Interface, use:
cc `MagickCore-config --cflags --cppflags --ldflags --libs` program.c
OPTIONS --cflags
Print the compiler flags that were used to compile libMagick.
--cppflags
Print the preprocessor flags that are needed to find the ImageMagick C include files and defines to ensure that the ImageMagick data
structures match between your program and the installed libraries.
--exec-prefix
Print the directory under which target specific binaries and executables are installed.
--ldflags
Print the linker flags that are needed to link with the ImageMagick library.
--libs Print the linker flags that are needed to link a program with libMagick.
--version
Print the version of the ImageMagick distribution to standard output.
LICENSE
See http://www.imagemagick.org/script/license.php.
AUTHORS
John Cristy, ImageMagick Studio LLC
ImageMagick 2 May 2002 MagickCore-Config(1)