LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



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

Rep: Reputation: 0
Compiling SRGP


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

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

int main()
{
SRGP_begin("hw", 500, 300, 1, TRUE);
SRGP_end();
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
yeti@eis:~/sr/src/srgp>

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
crazyduck
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
or
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
kopf
LQ Newbie
 
Registered: May 2004
Posts: 3

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


Reply


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/Novell 0 10-23-2005 03:46 PM
library srgp csst0136 Programming 1 10-17-2005 12:28 PM
installing srgp library csst0136 Suse/Novell 1 10-16-2005 08:16 AM


All times are GMT -5. The time now is 01:11 AM.

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