![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
|
gtk header problem
Hi guys, I am new to programming on linux, and I am having problems getting my first attempt at an app to compile. although I already have the lib-gtk2.0 library installed I keep getting this error when trying to compile my main.c file.
Here is the error I'm receiving... "main.c:10:21: error: gtk/gtk.h: No such file or directory" And here is what I have in my main... c Syntax (Toggle Plain Text)
This of course is all generated by Glade so I'm assuming I am just missing some package or something? thanks for taking a look at this for me. btw: in case someone was curious, I'm working on a pidgin plugin, there was this plug-in called sendtosome in gaim that i really loved but it doesn't exist in pidgin so I decided to make it myself.
__________________
I have never let my schooling interfere with my education. -Mark Twain- Xbox live gamertag: melbolt |
|
|
|
|
|
#2 |
|
Programmer
|
What's your compilation command line?
|
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
If I recall correctly, I tried using both "gcc main.c" and "make main" and received the same error on both.
__________________
I have never let my schooling interfere with my education. -Mark Twain- Xbox live gamertag: melbolt |
|
|
|
|
|
#4 |
|
Programmer
|
you need to use pkg-config for gcc to find the headers:
gcc `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` main.c -o main |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
|
ah ok, I get what you're saying, using what you gave me and a bit more research, I managed to get it past the includes. There were other errors I received later but then I found a tutorial on glade and how you are supposed to run the autogen.sh executable file and then you are able to use a "make" command and it successfully spits out an executable file which will then launch the program created in the glade designer.
This works all well and good, I have my form with controls on it and callbacks handling what I need, the app runs great. Here is my dilemma that maybe someone here can help me with... I don't want what I created in glade to be built into an executable, I need it to be built into a .so file. The reason why is because, as I mentioned in a previous post, this is going to be a plug-in for the pidgin messenger client and in order to use it as a plug-in it must be built into a .so not an executable. I know I could go the long way and not use glade to do all the form coding for me, but I'd rather not if I can avoid it, does anyone know a way to do this? thanks a lot for the help.
__________________
I have never let my schooling interfere with my education. -Mark Twain- Xbox live gamertag: melbolt |
|
|
|
|
|
#6 |
|
Hobbyist Programmer
|
sorry, to be more specific and to the point, I want glade to output a dynamic library or shared library. any idea how to do that?
__________________
I have never let my schooling interfere with my education. -Mark Twain- Xbox live gamertag: melbolt |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem processing file into a char array | csrocker101 | C++ | 1 | May 8th, 2007 11:50 PM |
| cgi/perl script + IE problem | joyceshee | Perl | 2 | Jan 24th, 2006 11:10 AM |
| send() problem w/ http server | kch_86 | C | 2 | Nov 25th, 2005 12:53 AM |
| question about header files and prototyping functions | linuxpimp20 | C | 13 | Sep 7th, 2005 8:28 AM |
| TCP Header for Echo Communication | AusTex | C++ | 0 | Feb 27th, 2005 3:57 PM |