⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edglan11.htm

📁 ST20 Embedded Toolset R2.0.5用于开发基于ST20芯片机顶盒软件的开发平台,2.0.5版本,国内找不到的.在国外论坛上花了N天才找到!
💻 HTM
字号:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Quadralay WebWorks Publisher Professional Edition 6.0.5">
<meta name="TEMPLATEBASE" content="book_html">
<meta name="LASTUPDATED" content="12/04/03 16:06:47">
<title>14.1.9 Libraries with exported templates  </title>

<STYLE TYPE="text/css">
<!--
	span.Signal { text-transform: uppercase; font-family: Verdana }
-->
</STYLE>

</head>

<body link="#3366CC" vlink="#9999CC" text="#000000" alink="#0000CC" bgcolor="#FFFFFF"
background="images/backgrnd.gif">

<p><img src="images/stlogo.gif" width="106" height="83" align="left"
alt="logo here!"> </p>

<table width="331" border="0" align="right" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href="a_refman.htm"><img src="images/navtoc.gif" width="84" height="23"
    border="0" alt="TOC"> </a></td>
    <td><a href="edglan10.htm"><img src="images/navprev.gif" width="80" height="23"
    border="0" alt="PREV"> </a></td>
    <td><a href="part3.htm"><img src="images/navnext.gif" width="83" height="23"
    border="0" alt="NEXT"> </a></td>
    <td><a href="a_refmaa.htm"><img src="images/navidx.gif" width="84" height="23"
    border="0" alt="INDEX"> </a></td>
  </tr>
</table>

<p><br clear="all">
</p>

<hr align="left">

<blockquote>
<h3>
  <a name="1207793"> </a><font color="#003366"  face="Verdana, Arial, Helvetica, sans-serif">14.1.9 	 Libraries with exported templates</font>
</h3>


<p>
  <a name="1207794"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">Typically a (non-export) library consists of an <font size=2 face=Courier><strong>include</strong></font><font  face="Verdana, Arial, Helvetica, sans-serif"><i> </i></font>directory and a <font size=2 face=Courier><strong>lib</strong></font><font  face="Verdana, Arial, Helvetica, sans-serif"><i> </i></font>directory. The <font size=2 face=Courier><strong>include</strong></font> directory contains the header files required by users of the library and the <font size=2 face=Courier><strong>lib</strong></font> directory contains the object code libraries that client programs must use when linking programs.</font>
</p>


<p>
  <a name="1207795"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">With exported templates, users of the library must also have access to the source code of the exported templates and the information contained in the associated "<font size=2 face=Courier><strong>.et</strong></font>" files. This information should be placed in a directory that is distributed along with the <font size=2 face=Courier><strong>include</strong></font> and <font size=2 face=Courier><strong>lib</strong></font> directories: This is the <font size=2 face=Courier><strong><em>export</em></strong></font> directory. It must be specified using the <font size=2 face=Courier><strong>exportdir</strong></font> option when compiling client programs.</font>
</p>


<p>
  <a name="1207796"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The recommended procedure to build the export directory is as follows:</font>
</p>

<ol type="1">
<p>  <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li  value="1"><a name="1207797"> </a>For each "<font size=2 face=Courier><strong>.et</strong></font>" file in the original source directory, copy the associated source file to the export directory.</font></p>
<p>  <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li  value="2"><a name="1207798"> </a>Concatenate all of the "<font size=2 face=Courier><strong>.et</strong></font>" files into a single "<font size=2 face=Courier><strong>.et</strong></font>" file (for example <font size=2 face=Courier><strong>mylib.et</strong></font>) in the export directory. The individual "<font size=2 face=Courier><strong>.et</strong></font>" files could be copied to the export directory, but having all of the "<font size=2 face=Courier><strong>.et</strong></font>" information in one file will make use of the library more efficient.</font></p>
<p>  <font size=2  face="Verdana, Arial, Helvetica, sans-serif"><li  value="3"><a name="1207799"> </a>Create an <font size=2 face=Courier><strong>export_info</strong></font> file in the export directory. The <font size=2 face=Courier><strong>export_info</strong></font> file specifies the include search paths to be used when recompiling files in the export directory. If no <font size=2 face=Courier><strong>export_info</strong></font> file is provided, the include search path used when compiling the client program that uses the library will also be used to recompile the library exported template files.</font></p>
</ol>

<p>
  <a name="1207800"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The <font size=2 face=Courier><strong>export_info</strong></font> file consists of a series of lines of the form</font>
</p>


<a name="1207801"> </a><font size=2 face=Courier><strong>include=<font size=2 face=Courier><strong><em>x</em></strong></font><br></strong></font>



<p>
  <a name="1207802"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">or</font>
</p>


<a name="1207803"> </a><font size=2 face=Courier><strong>sys_include=<font size=2 face=Courier><strong><em>x</em></strong></font><br></strong></font>



<p>
  <a name="1207804"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">where <font size=2 face=Courier><strong><em>x</em></strong></font><font  face="Verdana, Arial, Helvetica, sans-serif"> </font>is a path name to be placed on the include search path. The directories are searched in the order in which they <font  face="Verdana, Arial, Helvetica, sans-serif">are encountered in the </font><font size=2 face=Courier><strong>export_info</strong></font> file. T<font  face="Verdana, Arial, Helvetica, sans-serif">he file can also contain comments-which begin with a "</font><font size=2 face=Courier><em>#</em></font><font  face="Verdana, Arial, Helvetica, sans-serif">"-and blank lines. Spaces are ignored but tabs are not currently permitted. For example:</font></font>
</p>


<a name="1207805"> </a><font size=2 face=Courier><strong><font size=2 face=Courier><em># The include directories to be used for the xyz library</em></font> <br>include = /disk1/xyz/include<br>sys_include = /disk2/abc/include<br>include = /disk3/jkl/include<br></strong></font>



<p>
  <a name="1207809"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">The include search path specified for a client program is ignored by the front end when it processes the source in the export library, except when no <font size=2 face=Courier><strong>export_info</strong></font> file is provided. Command-line macro definitions specified for a client program are also ignored by the front end when processing a source file from the export library; the command line macros specified when the corresponding "<font size=2 face=Courier><strong>.et</strong></font>" file was produced do apply. All other compilation options (other than the include search path and command-line macro definitions) used when recompiling the exported templates will be used to compile the client program.</font>
</p>


<p>
  <a name="1207810"> </a><font size=2  face="Verdana, Arial, Helvetica, sans-serif">When a library is installed on a new system, it is likely that the <font size=2 face=Courier><strong>export_info</strong></font> file will need to be adapted to reflect the location of the required headers on that system.</font>
</p>
</blockquote>

<hr>



<table width="331" border="0" align="left" cellpadding="0" cellspacing="0">
  <tr>
    <td><a href="a_refman.htm"><img src="images/navtoc.gif" width="84" height="23"
    border="0" alt="TOC"> </a></td>
    <td><a href="edglan10.htm"><img src="images/navprev.gif" width="80" height="23"
    border="0" alt="PREV"> </a></td>
    <td><a href="part3.htm"><img src="images/navnext.gif" width="83" height="23"
    border="0" alt="NEXT"> </a></td>
    <td><a href="a_refmaa.htm"><img src="images/navidx.gif" width="84" height="23"
    border="0" alt="INDEX"> </a></td>
  </tr>
</table>
<font size=1 face="Verdana, Arial, Helvetica, sans-serif">&nbsp; &copy; 2001, 2002, 2003 STMicroelectronics. All Rights Reserved.<br>
&nbsp; ADCS 7250966F</font>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -