G
Gotch@
Hi all,
I've installed the CDT plugin for Eclipse and I want to use it to work
on C/C++ projects under Cygwin. It works, in fact it compiles and runs
the usual helloworld c++ program. Now it comes difficult when I try to
add external libs. Such as... GTK. Let's explain what I tried. (oh
well, I'm using Eclipse Europa 3.3.1 and CDT 4.0.1). First I just
added the path of the cygwin includes throug the project->properties-
folder. No effect. It says that it couldn't find gtk/gtk.h . So, since
it's a C++ project, I tried to add them under GNU C++. As a result the
compiler starts putting out messages about every header in the library
compelling that ISO C forbids this and that...
Let's note that my include is
#include <gtk/gtk.h> but i get the same results with <gtk.h> and "gtk/
gtk.h".
I don't get it, but I'd like to use eclipse to devlop in C/C++ because
of positive Java experiences.
Do you have any ideas, most tutorials on the topic are outdated and
the old CDT is quite different, especially regarding the project
types.
I've installed the CDT plugin for Eclipse and I want to use it to work
on C/C++ projects under Cygwin. It works, in fact it compiles and runs
the usual helloworld c++ program. Now it comes difficult when I try to
add external libs. Such as... GTK. Let's explain what I tried. (oh
well, I'm using Eclipse Europa 3.3.1 and CDT 4.0.1). First I just
added the path of the cygwin includes throug the project->properties-
GNU C the path to the gtk-2.0 includes in cygwin/usr/include/gtk-2.0C/C++ General->Paths and Symbols window. I added in Includes under
folder. No effect. It says that it couldn't find gtk/gtk.h . So, since
it's a C++ project, I tried to add them under GNU C++. As a result the
compiler starts putting out messages about every header in the library
compelling that ISO C forbids this and that...
Let's note that my include is
#include <gtk/gtk.h> but i get the same results with <gtk.h> and "gtk/
gtk.h".
I don't get it, but I'd like to use eclipse to devlop in C/C++ because
of positive Java experiences.
Do you have any ideas, most tutorials on the topic are outdated and
the old CDT is quite different, especially regarding the project
types.