View Full Version : Anjuta header file problem
czeslawoo
June 19th, 2007, 04:37 PM
Hi I'm trying to compile C++ Gnome project using Anjuta and Glade.
There was tons of errors and missing headers file...
...I spent last couple of hours installing, googling and ln -s.
but I've got last missing header file and google are silent.
gnome--/main.h not found //mind two minus signs after gnome??? what is this??
where I can find it?? I've installed almost every single packet which has gnome in name and nothing.
cheers for any help
czeslawoo;
ps Ubuntu, Anjuta1.2.4a
kknd
June 19th, 2007, 05:03 PM
You are using glade 2 an d generating the source code?
If yes, it needs the lin gnomemm, but I recomend you to use libglade to load dinamicaly the UI.
czeslawoo
June 19th, 2007, 05:21 PM
Yes that's Glade 2
And I've got libgnomemm installed:
/usr/include/libgnomemm-2.6
/usr/include/libgnomemm-2.6/libgnomemm
/usr/include/libgnomemm-2.6/libgnomemm/private
/usr/include/libgnomemm-2.6/libgnomemm/private/main_p.h
/usr/include/libgnomemm-2.6/libgnomemm/private/moduleinfo_p.h
/usr/include/libgnomemm-2.6/libgnomemm/private/program_p.h
/usr/include/libgnomemm-2.6/libgnomemm/main.h //it is that header ??
/usr/include/libgnomemm-2.6/libgnomemm/moduleinfo.h
/usr/include/libgnomemm-2.6/libgnomemm/program.h
/usr/include/libgnomemm-2.6/libgnomemm/init.h
/usr/include/libgnomemm-2.6/libgnomemm/wrap_init.h
/usr/include/libgnomemm-2.6/libgnomemm.h
I chose Anjuta because of it integration witch Glade.
I'm more eclipse programmer but I'm new with GTK+ and I was looking for something more
automatic for beginning.
What do you mean by using libglide???
small code or link will be useful
I was googling all day and I'm tired of it:-)
cheers czeslawoo;
czeslawoo
June 19th, 2007, 05:57 PM
Fine when I link that libgnomemm/main.h header with gnome--/main.h
It seems to work ok that is what was compiler looking for but I end up with
no matching function error:-(
my program looks like this:
// generated 2007/6/19 17:01:51 BST by czeslawoo@STH-czeslawoo.(none)
// using glademm V2.6.0
//
// newer (non customized) versions of this file go to hhhhh.cc_new
// This file is for your program, I won't touch it again!
#include <config.h>
#include <gnome--/main.h>
#include <glib/gi18n.h>
#include "window1.hh"
int main(int argc, char **argv)
{
#if defined(ENABLE_NLS)
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
#endif //ENABLE_NLS
Gnome::Main m(PACKAGE, VERSION, argc, argv);
window1 *window1 = new class window1();
m.run(*window1);
delete window1;
return 0;
}
And it is 100% generated by Anjuta.
There is no Main function like this one in main.h
closest one will be:
Main(const Glib::ustring& app_id, const Glib::ustring& app_version,
const ModuleInfo& module_info,
int argc, char** argv);
but there is one parameter missing??
What i can do with that please??
Why Anjuta generates that Main function?? Is it a problem with Anjuta or I'm not up too date with versions??
My versions are: Anjuta 1.2.4a, libgnomemm-2.6, Glade2-12.1
czeslawoo;
kh_naba
June 25th, 2007, 05:32 PM
> My versions are: Anjuta 1.2.4a
>
I suggest upgrading that version to a newer one: http://anjuta.org/downloads
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.