Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-11-2004, 08:58 AM   #1
LQ Newbie
Registered: May 2004
Posts: 3

Rep: Reputation: 0
Compiling SRGP

I got he package from when I try to compile the following source:

#include <stdio.h>
#include "srgp.h"

int main()
SRGP_begin("hw", 500, 300, 1, TRUE);
return 1;

I got the errors:

yeti@eis:~/sr/src/srgp> gcc -g test.c
/tmp/ccaFDnJr.o: In function `main':
/home/yeti/sr/src/srgp/test.c:6: undefined reference to `SRGP_begin'
/home/yeti/sr/src/srgp/test.c:7: undefined reference to `SRGP_end'
collect2: ld returned 1 exit status

the srgp.h and the other h-files are in the current directory. when I try to export the srgp-path, then the h-files are not found!
thank you for your help, felix
Old 06-11-2004, 09:07 AM   #2
LQ Newbie
Registered: Jun 2004
Location: poland
Distribution: slack
Posts: 5

Rep: Reputation: 0
you've to add object file or library with these functions
bu adding -l(libraryname), or objectfilename.o to your gcc command line
gcc -g test.c -lsomelib
gcc -g test.c someobject.o

you can get someobject.o by compiling package that you get, or you can get library by installing this package (i don't know it so i'm not sure how to do it .) )
if it's instalend you propably can type "man packagename" and then find name of library to link

did i help?
Old 06-14-2004, 01:21 AM   #3
LQ Newbie
Registered: May 2004
Posts: 3

Original Poster
Rep: Reputation: 0
no sorry it does not help, the error still occours.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
compile error srgp library in C csst0136 Programming 13 10-25-2005 10:36 PM
error compiling srgp program in c csst0136 Programming 10 10-25-2005 01:14 AM
error compiling srgp program in c csst0136 SUSE / openSUSE 0 10-23-2005 03:46 PM
library srgp csst0136 Programming 1 10-17-2005 12:28 PM
installing srgp library csst0136 SUSE / openSUSE 1 10-16-2005 08:16 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration