The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Re: GTK+ libraries
Author: Johnny2Bad 
Date:   02-09-08 02:39

Hi,
I installed the x11-toolkits/gtk20 port and still have difficulties.

When I try to compile the following...



/* A sample GNOME program
Created By: Subhasish Ghosh
Date: 8th August, 2001
*/

#include <gnome.h>

int main(int argc, char *argv[ ])
{

GtkWidget *ghosh;
gnome_init("sample", "0.1", argc, argv);
ghosh = gnome_app_new("sample", "My Window");
gtk_widget_show(ghosh);

gtk_main();
return 0;

}

with....
gcc myapp.c -o myapp `gnome-config --cflags --libs gnomeui`

I get the following errors...
gnome-config: not found
myapp.c:8:23 error hnome.h no such file or directory
mpapp.c: In function 'main'
myapp.c:13:error 'GtkWidget' undeclared (first use in this function)
myapp.c:13:error (each undeclared identifier is reported only once
myapp.c:13:error for each function it appears in)
myapp.c:13:error 'ghosh' undeclared (first use in this function)

Now am I missing more pre-requisites for gnome programming?

Perhaps I should uninstall gnome and do your first suggestion and install x11/gnome2. If so how do I go about uninstalling gnome?

Thanking you in advance,
Jonathan.



 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 GTK+ libraries   new
Johnny2Bad 27-08-08 02:49 
 Re: GTK+ libraries   new
Dan 27-08-08 03:12 
 Re: GTK+ libraries   new
Dan 27-08-08 03:14 
 Re: GTK+ libraries   new
Johnny2Bad 02-09-08 02:39 
 Re: GTK+ libraries   new
Dan 02-09-08 02:43 
 Re: GTK+ libraries   new
Byron 24-02-09 11:30 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org