-   Programming ( -   -   compile error srgp library in C (
csst0136 10-23-2005 03:48 PM  compile error srgp library in C i
compile the program:  #include <stdio.h> #include "srgp.h"  int
main() SRGP_begin("hw", 500, 300, 1, TRUE); return 1;  and i get
/tmp/cc4ddcut.o(text+0x27):In function 'main': :undefined
reference to 'SRGP_begin'  /tmp/cc4ddcut.o(text+0x2f):In
function 'main': :undefined reference to 'SRGP_end' collect 2:ld
returned 1 exit status  Hko 10-24-2005 12:25 PM  You didn't link
the lib that contains SRGP_begin and SRGP_end on the compiler
command line.  Or you didn't mention srgp.c after the -o option
on the compiler command line.  csst0136 10-24-2005 12:43 PM  how
do i link the libraries?there is a file libsrgp.a which contains
files with extension .o.I have put libsrgp.a into /usr/lib  i
compile the program like : gcc name_program.c i dont use -o
deiussum 10-24-2005 01:18 PM  To link libraries, you add
-l<libraryname> to your comand line. Library name is the name of
a library that is usual