Subject: Linux programming help
From: Rotary Engine
Date: 1/16/2010, 4:11 PM
To: AAA Put this in the To box


 What does this arrow mean?

 Paul Lamar


I never look at "file manager" utilities in linux.  Too mouse-centric..

"include"?  What do the icons for the source ("C") code look like?

Matt-

They don't have the arrow.

The program I am trying to compile requires usb.h.
The Hytek Automation usb program requires usb.h

It is not in the same directory as stdio.h

Does that matter?

In other words where does gcc look for include files?

If you do a locate usb.h it shows up all over
the place except in the same directory as stdio.h :)
Probably 100 files by that name :)


Paul Lamar


"-I" is used to specify additional files to be included in the compile.

And, there are environment variables that are used to tell the
compiler where to look for includes.  Described fairly well here:

http://www.network-theory.co.uk/docs/gccintro/gccintro_23.html

The #include statement can have path information in it ("/" -
slashes), though my experience is that this is used for include
subdirectories that reside in the same directory as the source code.


Matt-


-- 
The Rotary Engine NewsLetter. Powered by Linux.
ACRE NL web site. http://www.rotaryeng.net
Youtube key word UTUBPLEASE
Copyright 1998-2009 All world wide rights reserved.