LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-24-2001, 07:55 PM   #1
kleric
LQ Newbie
 
Registered: Nov 2001
Location: Victoria, B.C
Distribution: Red Hat 6.0
Posts: 5

Rep: Reputation: 0
GGI/GII problems


I just installed GGI but a little test program initializing a visual doesn't seem to link properly...

I initially downloaded a tarred GGI and GII, but when they wouldn't properly build I got impatient and installed the GGI and GII rpms instead.

Then I recursively copied all of the header files, and their directories, that came with the tarball into /usr/include/ggi
I don't know if what I did was right, so maybe that's where the problem is... in any case, here's the code and the output it produced..

..
..
..
#include <ggi/ggi.h>

int main()
{
ggi_visual_t vis;

if( ggiInit() < 0 ) {
printf("Couldn't initialize GGI...\n");
exit(1);

if( ! (vis=ggiOpen(NULL))) {
printf("Couldn't open a visual...\n");
} else {
printf("Got a default visual!\n");
ggiClose(vis);
}

ggiExit();
return 0;
}
}
..
..
..
#gcc visual.c
/tmp/ccffyg3n.o: In function 'main':
/tmp/ccffyg3n.o:(.test+0xa): undefined reference to 'ggiInit'
collect2: ld returned 1 exit status
..
..
..
#gcc visual.c -c
this compiles perfectly..
..
..
..


Can anyone please help me with this?
If more information is needed, just let me know..
Thanks
 
  


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
Ethernet Adsl Modem Driver Problems And Install Problems... akhilnair Linux - Hardware 12 11-28-2004 08:19 AM
cisco 350 wireless problems and suse x-server problems incognito9 Linux - Wireless Networking 5 10-14-2004 07:53 AM
Problems with OSS while trying to avoid problems in ALSA (scratchy sound) GT_Onizuka Linux - General 1 02-05-2004 11:55 PM
Problems, problems, problems. Lets start with the soundcard Kre8ive Linux - Newbie 5 08-07-2003 01:20 AM
Problems, problems, problems. Lets start with the ES 1868 AudioDrive Kre8ive Linux - Newbie 1 08-06-2003 07:04 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:11 PM.

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
Open Source Consulting | Domain Registration