kopia lustrzana https://gitlab.com/sane-project/website
141 wiersze
5.6 KiB
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 <sane...> instead of "sane.</TITLE>
|
|
<META NAME="Author" CONTENT="Oliver Rauch (oliver.rauch@Wolfsburg.DE)">
|
|
<META NAME="Subject" CONTENT="Re: #include <sane...> instead of "sane..."">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>Re: #include <sane...> instead of "sane..."</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 <sane...> instead of "sane..."" -->
|
|
<!-- 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<sane...>%20instead%20of%20"sane..."&In-Reply-To=<3A004CCC.BF6C9B0D@wolfsburg.de>"><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 <sane...> instead of "sane...""</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0047.html">Jochen Eisinger: "Re: #include <sane...> instead of "sane...""</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>>
|
|
</EM><BR>
|
|
<EM>> [Oliver Rauch]
|
|
</EM><BR>
|
|
<EM>> > As far as I know it is not defined in which order the directories
|
|
</EM><BR>
|
|
<EM>> > specified with "-I" and the system include directories are searched.
|
|
</EM><BR>
|
|
<EM>> > (I know some users had problems because of that).
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Eh, I am pretty sure they are searched in the order they are specified
|
|
</EM><BR>
|
|
<EM>> on the command line. A simple test shows this to be true on Linux /
|
|
</EM><BR>
|
|
<EM>> GCC at least. I believe this to be true for all Unix C compilers, and
|
|
</EM><BR>
|
|
<EM>> probably all sensible C compilers. Where did users have problems
|
|
</EM><BR>
|
|
<EM>> because of another include search order?
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> I suggest making sure "-I../include/sane " is the first -I statement
|
|
</EM><BR>
|
|
<EM>> when compiling, and leave it at that.
|
|
</EM><BR>
|
|
<EM>>
|
|
</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 "../include/sane/sane*"
|
|
<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 "sane/sane*"
|
|
<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<sane...>%20instead%20of%20"sane..."&In-Reply-To=<3A004CCC.BF6C9B0D@wolfsburg.de>">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<sane...>%20instead%20of%20"sane..."&In-Reply-To=<3A004CCC.BF6C9B0D@wolfsburg.de>">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 <sane...> instead of "sane...""</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0047.html">Jochen Eisinger: "Re: #include <sane...> instead of "sane...""</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>
|