Dear all ,
I have one shared library in "/usr/lib/ast/mod/quad.so"
where the functions "X1" and "X2" are defined.
In header file "quad.h" it is declared.
I have created a "test.c" where X1 and X2 are called
I have used the following commads for compiling and linking

#gcc -c test.c
#gcc -o test.o -L. -Wl,-rpath,/usr/lib/ast/mod/quad.so
i am getting the error:
undefined reference to X1
undefined refernece yo X2

what all things i have to do to make a proper linking

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.