|
|
cygwin path problem
Hi all,
I am doing some C / C++ programming in cygwin and I notice when I add
something to my path then try to compile, the gcc / g++ compiler
cannot find some files, even though they are in the directory I may
have just added to my path.
For example I have copied the example program from http://www.gtk.org/tutorial/c39.html
and when I compiled it, the compiler couldn't find gtk/gtk.h.
I thought to solve this I would have to add the path to gtk/gtk.h to
my path and so I did;
> PATH=$PATH:/usr/include/gtk-2.0
then I compiled again and while it found gtk.h it could not find a lot
of other gtk headers, such as gtktext.h. However this and the other
files which were not found are also in /usr/include/gtk-2.0 and they
are included as <gtk/gtktext.h>.
I'm guessing that my path has not been set right but I'm fumbling in
the dark. If someone could help it would be greatly appreciated.
John
|
|
0
|
|
|
|
Reply
|
johnmmcparland
|
4/18/2007 10:52:33 AM |
|
* johnmmcparland@googlemail.com [2007.04.18 10:52]:
> I am doing some C / C++ programming in cygwin and I notice
> when I add something to my path then try to compile, the
> gcc / g++ compiler cannot find some files, even though
> they are in the directory I may have just added to my
> path.
The compiler doesn't search the directories in the PATH
variable. These are searched by the *shell* to start
commands.
You tell the compiler where the include files are when you
invoke it. gcc uses the -I option. Check your compiler's
documentation otherwise.
> For example I have copied the example program from
> http://www.gtk.org/tutorial/c39.html and when I compiled
> it, the compiler couldn't find gtk/gtk.h.
That is a very bad way to describe a problem. Always include
the exact command you entered and the exact error message
you got, not *descriptions* of them.
You might also want to read this:
http://www.catb.org/~esr/faqs/smart-questions.html
--
JR
|
|
0
|
|
|
|
Reply
|
Jean
|
4/18/2007 3:02:39 PM
|
|
|
1 Replies
168 Views
(page loaded in 1.117 seconds)
Similiar Articles: ln-s does not work.. why? (using cygwin in Windows XP) - comp.unix ...... TEST/' test_f > > Maybe you should not single-quote the target path ... there's an extra `/' now, so that > might as well be the problem. =A0(I have not used Cygwin since ... Trouble installing DBD-Oracle-1.23 on Cygwin - comp.lang.perl.misc ...Since this is a rather Cygwin-specific problem, you may have more luck on a Cygwin mailing list. ... of the Oracle-Client (that's where oci.dll resides) to the PATH ... Xilinx TCL and Cygwin - comp.arch.fpga... with TCL, and ran into an interesting problem. If you're running bash through Cygwin: A ... to the following: ERROR:EDK - linux_2_6 - cygwin warning: MS-DOS style path ... Problem with ISPELL - comp.emacs... into c:/ispell and I have also added c:/ispell/bin to my path. I am using Windows 2000. The problem ... AUCTeX, Reftex, Ispell, header, cygwin-mount, bar ... really like ... Linker problem - comp.unix.solarisThe problem is how I force it to use gld, I have to ... unresolved functions - comp ... shared library path problem ... Linker Error: cannot find -lGL [in Cygwin] - comp ... Escape Character in directory path - comp.lang.c++.moderated ...Hi I need to pass a path to FindFirstFile() that is specified by the user, problem is that all \ characters need ... (using cygwin in Windows XP) - comp.unix ..... symlink ... read-line will not process German characters? - comp.lang.lisp ...> > Is this a read-line problem or my setting problem? ... by using the 'file' program that comes with cygwin, OR ... (defun parse-key-file (path) (with-open-file (s path ... Linker Can't Find Library - comp.os.ms-windows.programmer.win32 ...Linker Error: cannot find -lGL [in Cygwin] - comp.graphics.api ... Hi - I'm sure ... to zlibstat.lib and still unresolved functions - comp ... shared library path problem ... Error loading shared library - comp.sys.hp.hpuxLinker Error: cannot find -lGL [in Cygwin] - comp.graphics.api ... Linker Error ... shared library path problem - comp.sys.hp.hpux Error loading shared library - comp.sys.hp ... Ghostscript pdfwrite - comp.text.pdfThe double quotes did fix my earlier problem where ghostscript would report an issue with my path. ... On Linux or Unix, or on Windows under Cygwin's bash ... Using CygwinOr, it could be a permission problem, and Cygwin doesn't understand that your script is ... way to the Windows path, but will be converted internally to use the Cygwin path ... Tom Roche - problem setting cygwin $PATHI'm attempting to debug a problem with the cygwin upgrade I attempted today (25 May 09). But before I post about that, I'd like to fix a problem I just noticed with ... 7/29/2012 10:56:54 PM
|
|
|
|
|
|
|
|
|