sane-project-website/old-archive/2000-11/0007.html

141 wiersze
5.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: #include &lt;sane...&gt; instead of &quot;sane.</TITLE>
<META NAME="Author" CONTENT="Oliver Rauch (oliver.rauch@Wolfsburg.DE)">
<META NAME="Subject" CONTENT="Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;</H1>
<!-- received="Wed Nov 1 09:00:11 2000" -->
<!-- isoreceived="20001101170011" -->
<!-- sent="Wed, 01 Nov 2000 18:03:08 +0100" -->
<!-- isosent="20001101170308" -->
<!-- name="Oliver Rauch" -->
<!-- email="oliver.rauch@Wolfsburg.DE" -->
<!-- subject="Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;" -->
<!-- id="3A004CCC.BF6C9B0D@wolfsburg.de" -->
<!-- inreplyto="200011010542.NAA16128@minerva.ee.uwa.edu.au" -->
<STRONG>From:</STRONG> Oliver Rauch (<A HREF="mailto:oliver.rauch@Wolfsburg.DE?Subject=Re:%20#include%20&lt;sane...&gt;%20instead%20of%20&quot;sane...&quot;&In-Reply-To=&lt;3A004CCC.BF6C9B0D@wolfsburg.de&gt;"><EM>oliver.rauch@Wolfsburg.DE</EM></A>)<BR>
<STRONG>Date:</STRONG> Wed Nov 01 2000 - 09:03:08 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0008.html">Oliver Rauch: "Re: sane-config"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0006.html">William L. Sebok: "Re: [snapscan] Core testing group"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0047.html">Jochen Eisinger: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0047.html">Jochen Eisinger: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#7">[ date ]</A>
<A HREF="index.html#7">[ thread ]</A>
<A HREF="subject.html#7">[ subject ]</A>
<A HREF="author.html#7">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Petter Reinholdtsen wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; [Oliver Rauch]
</EM><BR>
<EM>&gt; &gt; As far as I know it is not defined in which order the directories
</EM><BR>
<EM>&gt; &gt; specified with &quot;-I&quot; and the system include directories are searched.
</EM><BR>
<EM>&gt; &gt; (I know some users had problems because of that).
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Eh, I am pretty sure they are searched in the order they are specified
</EM><BR>
<EM>&gt; on the command line. A simple test shows this to be true on Linux /
</EM><BR>
<EM>&gt; GCC at least. I believe this to be true for all Unix C compilers, and
</EM><BR>
<EM>&gt; probably all sensible C compilers. Where did users have problems
</EM><BR>
<EM>&gt; because of another include search order?
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; I suggest making sure &quot;-I../include/sane &quot; is the first -I statement
</EM><BR>
<EM>&gt; when compiling, and leave it at that.
</EM><BR>
<EM>&gt;
</EM><BR>
<P>Hi Petter,
<BR>
<P>it may be right that the path is searched in the order of the -I options,
<BR>
but it looks like some compilers do use at first the system include paths
<BR>
and after that the ones given by -I.
<BR>
I don`t remember it exactly, it has been about 1 year ago.
<BR>
The users were not able to compile sane and after they removed
<BR>
/usr/local/include/sane everything worked fine.
<BR>
<P>It does not look like a problem that does occur often, but
<BR>
I also do not see a problem to change all to
<BR>
#include &quot;../include/sane/sane*&quot;
<BR>
<P>It has another side effect: The one who reads the sourcecode
<BR>
knows which file is wanted, when I read a
<BR>
#include &quot;sane/sane*&quot;
<BR>
I expect at first that a system file is included
<BR>
<P>Bye
<BR>
Oliver
<BR>
<P><PRE>
--
Homepage: <A HREF="http://www.wolfsburg.de/~rauch">http://www.wolfsburg.de/~rauch</A>
sane-umax: <A HREF="http://www.wolfsburg.de/~rauch/sane/sane-umax.html">http://www.wolfsburg.de/~rauch/sane/sane-umax.html</A>
xsane: <A HREF="http://www.wolfsburg.de/~rauch/sane/sane-xsane.html">http://www.wolfsburg.de/~rauch/sane/sane-xsane.html</A>
E-Mail: mailto:<A HREF="mailto:Oliver.Rauch@Wolfsburg.DE?Subject=Re:%20#include%20&lt;sane...&gt;%20instead%20of%20&quot;sane...&quot;&In-Reply-To=&lt;3A004CCC.BF6C9B0D@wolfsburg.de&gt;">Oliver.Rauch@Wolfsburg.DE</A>
<P>--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20#include%20&lt;sane...&gt;%20instead%20of%20&quot;sane...&quot;&In-Reply-To=&lt;3A004CCC.BF6C9B0D@wolfsburg.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0008.html">Oliver Rauch: "Re: sane-config"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0006.html">William L. Sebok: "Re: [snapscan] Core testing group"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0047.html">Jochen Eisinger: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0047.html">Jochen Eisinger: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#7">[ date ]</A>
<A HREF="index.html#7">[ thread ]</A>
<A HREF="subject.html#7">[ subject ]</A>
<A HREF="author.html#7">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Wed Nov 01 2000 - 09:01:41 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>