sane-project-website/old-archive/2000-10/0330.html

143 wiersze
5.8 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="Tue Oct 31 10:52:58 2000" -->
<!-- isoreceived="20001031185258" -->
<!-- sent="Tue, 31 Oct 2000 19:45:35 +0100" -->
<!-- isosent="20001031184535" -->
<!-- name="Oliver Rauch" -->
<!-- email="oliver.rauch@Wolfsburg.DE" -->
<!-- subject="Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;" -->
<!-- id="39FF134F.BF3E8616@wolfsburg.de" -->
<!-- inreplyto="200010310649.OAA05131@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;39FF134F.BF3E8616@wolfsburg.de&gt;"><EM>oliver.rauch@Wolfsburg.DE</EM></A>)<BR>
<STRONG>Date:</STRONG> Tue Oct 31 2000 - 10:45:35 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0331.html">Henning Meier-Geinitz: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0329.html">Oliver Rauch: "Re: X-Frontends (xscanimage+xcam) and sane-1.0.4"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0324.html">Petter Reinholdtsen: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0331.html">Henning Meier-Geinitz: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#330">[ date ]</A>
<A HREF="index.html#330">[ thread ]</A>
<A HREF="subject.html#330">[ subject ]</A>
<A HREF="author.html#330">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Petter Reinholdtsen wrote:
<BR>
<EM>&gt;
</EM><BR>
<EM>&gt; If you check the cpp manual page, it will tell you changing &lt;&gt; to &quot;&quot;
</EM><BR>
<EM>&gt; only adds searching in the current directory. I can not see why this
</EM><BR>
<EM>&gt; gives any advantages when compiling SANE.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; What am I missing?
</EM><BR>
<EM>&gt;
</EM><BR>
<P>Hi Petter,
<BR>
<P>you are right at that point and I see that we are still doing it wrong.
<BR>
<P>The problem is the following:
<BR>
<P>We have some files in the sourcepackage in sane*/include/sane/...
<BR>
some of these files (sane.h and saneopts.h) may also be installed
<BR>
in the system directory.
<BR>
<P>In the moment we add the sane*/include directory with &quot;-I../include&quot;
<BR>
As far as I know it is not defined in which order the directories
<BR>
specified with &quot;-I&quot; and the system include directories are searched.
<BR>
(I know some users had problems because of that).
<BR>
This way it may happen that an old sane.h / saneopts.h file
<BR>
(and in the moment also a lot of sanei_* files that are installed
<BR>
although they should not be installed)
<BR>
from the system directory is used instead of the one included in the
<BR>
sane source package.
<BR>
<P>This problem normally does not occur because the source header files
<BR>
normally are placed in the directory where the sourcecode (*.c)
<BR>
is placed. But we put the header files in an own directory.
<BR>
<P>So a correct way would be to use
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#include &quot;../include/sane/sane.h&quot;
<BR>
this file/path is searched at first from the local directory
<BR>
so we can be sure that the file that comes with the sourcepackage
<BR>
is used.
<BR>
<P>Bye
<BR>
Oliver
<BR>
<P><P><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;39FF134F.BF3E8616@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;39FF134F.BF3E8616@wolfsburg.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0331.html">Henning Meier-Geinitz: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0329.html">Oliver Rauch: "Re: X-Frontends (xscanimage+xcam) and sane-1.0.4"</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0324.html">Petter Reinholdtsen: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0331.html">Henning Meier-Geinitz: "Re: #include &lt;sane...&gt; instead of &quot;sane...&quot;"</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#330">[ date ]</A>
<A HREF="index.html#330">[ thread ]</A>
<A HREF="subject.html#330">[ subject ]</A>
<A HREF="author.html#330">[ 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>Tue Oct 31 2000 - 10:54:00 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>