Results 1 to 2 of 2
hi... i am not able to compile my test program which uses gtkmozembed.As i am very new to this, i dont know which are the packages to be installed and ...
- 04-21-2010 #1Just Joined!
- Join Date
- Nov 2009
- Posts
- 5
how to compile a program with gtkmozembed.h
hi... i am not able to compile my test program which uses gtkmozembed.As i am very new to this, i dont know which are the packages to be installed and how to compile
test.c
------------
#include <gtkmozembed.h>
#include <gtk/gtk.h>
#include <stdio.h>
int main(){
GtkWidget *mozEmbed;
mozEmbed = gtk_moz_embed_new();
return 0;
}
---------------
i am trying to compile like this
gcc `pkg-config --cflags --libs gtk+-2.0 mozilla-gtkmozembed-embedding` test.c -o test
but it is not compiling.. it is generating errors like below.
test.c
.text+0x6f): undefined reference to `gtk_moz_embed_new'
can anyone help me by telling what are the basic packages to be installed and how to compile. All packages required for gtk are installed and gtk application runs fine.
Thanks...
- 04-27-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
You are including the header, but you aren't linking the library. Try gcc `pkg-config --cflags --libs gtk+-2.0 mozilla-gtkmozembed-embedding` test.c -l gtkmosembed -o test, although that is only a guess at the library file name.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote