jacob navia <ja***@nospam.comwrites:
Flash Gordon wrote:
>Gotch@ wrote, On 15/01/08 17:17:
>>The symlink is not seen by Windows file access routines... I'll try to
just rename the folder... hope this wuoldn't break up anything...
<snip>
This is not topical here for two reasons
1) You state you are using C++, that is not the language we discuss here
2) Your problem is with your tools rather than the language.
I'm sure there are Eclipse mailing lists, I suggest you try checking
them out, finding the correct one, and asking there. Or possibly on
the gcc, Cygwin or GTK mailing lists, as your problem might be with
those rather than Eclipse itself. However *check* what is topical
before posting your question somewhere else.
Actually it is a language problem
He added
\include\gtk-2.0 (what is equivalent to calling the compiler
with -I\include\gtk-2.0) but the source code expects
\include\gtk.
Note that when you write
#include <gtk/gtk.h>
the language supposes that directories exist and that there
is a subdirectory "gtk" in the normal system includes
directory.
[...]
The *language* does no such thing; an implementation very likely does.
C99 6.10.2p2:
A preprocessing directive of the form
# include <h-char-sequencenew-line
searches a sequence of implementation-defined places for a header
identified uniquely by the specified sequence between the < and >
delimiters, and causes the replacement of that directive by the
entire contents of the header. How the places are specified or the
header identified is implementation-defined.
Note the lack of any mention of directories or subdirectories, or of
any implication that '/' is a directory path delimiter.
Even if you think this is nitpicking, that it's obvious that <gtk/...>
must refer to a directory named "gtk", it's not at all obvious what
the proper solution is. I doubt that either creating a symlink or
renaming the folder is the right approach.
<OT>
You wrote:
You addedd the path to
/usr/include/gtk-2.0 BUT the code expects
/usr/include/gtk
Try to make a symbolic link of gtk-2.0 to gtk
But in fact, on my Cygwin installation the header file the OP is
looking for is at /usr/include/gtk-2.0/gtk/gtk.h (note that "gtk" is a
subdirectory of "gtk-2.0"().
My best guess is that the problem is a confusion between Windows and
Cygwin paths (the directory "/usr/include/gtk-2.0" as seen from Cygwin
might be called, for example, "C:\cygwin\usr\include\gtk-2.0" as seen
from Windows). If that's the problem, a Cygwin mailing list would
be the best place to ask about it.
</OT>
--
Keith Thompson (The_Other_Keith) <ks***@mib.org>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"