~ubuntu-branches/ubuntu/raring/babel/raring-proposed

« back to all changes in this revision

Viewing changes to doc/manuals/html/users_guide/node136.html

  • Committer: Bazaar Package Importer
  • Author(s): Adam C. Powell, IV
  • Date: 2008-08-01 07:56:58 UTC
  • mfrom: (3.1.2 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080801075658-9ezcrbh8dcs8lg70
Tags: 1.2.0.dfsg-6
Added libparsifal-dev as dependency to libsidl-dev (closes: #483324).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
 
 
3
 
<!--Converted with LaTeX2HTML 2002-2-1 (1.70)
4
 
original version by:  Nikos Drakos, CBLU, University of Leeds
5
 
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
6
 
* with significant contributions from:
7
 
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
8
 
<HTML>
9
 
<HEAD>
10
 
<TITLE>Invoking Babel to generate FORTRAN 77 Stubs</TITLE>
11
 
<META NAME="description" CONTENT="Invoking Babel to generate FORTRAN 77 Stubs">
12
 
<META NAME="keywords" CONTENT="users_guide">
13
 
<META NAME="resource-type" CONTENT="document">
14
 
<META NAME="distribution" CONTENT="global">
15
 
 
16
 
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
17
 
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
18
 
 
19
 
<LINK REL="STYLESHEET" HREF="users_guide.css">
20
 
 
21
 
<LINK REL="next" HREF="node137.html">
22
 
<LINK REL="previous" HREF="node135.html">
23
 
<LINK REL="up" HREF="node131.html">
24
 
<LINK REL="next" HREF="node137.html">
25
 
</HEAD>
26
 
 
27
 
<BODY >
28
 
 
29
 
<DIV CLASS="navigation"><!--Navigation Panel-->
30
 
<A NAME="tex2html2743"
31
 
  HREF="node137.html">
32
 
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
33
 
<A NAME="tex2html2737"
34
 
  HREF="node131.html">
35
 
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
36
 
<A NAME="tex2html2731"
37
 
  HREF="node135.html">
38
 
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
39
 
<A NAME="tex2html2739"
40
 
  HREF="node14.html">
41
 
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
42
 
<A NAME="tex2html2741"
43
 
  HREF="node317.html">
44
 
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
45
 
<BR>
46
 
<B> Next:</B> <A NAME="tex2html2744"
47
 
  HREF="node137.html">Implementing Classes in FORTRAN</A>
48
 
<B> Up:</B> <A NAME="tex2html2738"
49
 
  HREF="node131.html">FORTRAN 77 Bindings</A>
50
 
<B> Previous:</B> <A NAME="tex2html2732"
51
 
  HREF="node135.html">Catching and Throwing Exceptions</A>
52
 
 &nbsp; <B>  <A NAME="tex2html2740"
53
 
  HREF="node14.html">Contents</A></B> 
54
 
 &nbsp; <B>  <A NAME="tex2html2742"
55
 
  HREF="node317.html">Index</A></B> 
56
 
<BR>
57
 
<BR></DIV>
58
 
<!--End of Navigation Panel-->
59
 
 
60
 
<H1><A NAME="SECTION03350000000000000000"></A>
61
 
<A NAME="7288"></A>
62
 
<BR>
63
 
Invoking Babel to generate FORTRAN 77 Stubs
64
 
</H1>
65
 
 
66
 
<P>
67
 
Here is how you should invoke Babel to create the FORTRAN 77 stubs for an IDL 
68
 
file <A NAME="tex2html38"
69
 
  HREF="footnode.html#foot7354"><SUP><SPAN CLASS="arabic">9</SPAN>.<SPAN CLASS="arabic">1</SPAN></SUP></A>.
70
 
 
71
 
<P>
72
 
<BLOCKQUOTE>
73
 
<TT> <TT>%</TT> <TT><B>babel -client=f77 file.sidl</B></TT>
74
 
<BR>
75
 
</TT></BLOCKQUOTE>or simply
76
 
<BLOCKQUOTE>
77
 
<TT> <TT>%</TT> <TT><B>babel -c=f77 file.sidl</B></TT>
78
 
<BR>
79
 
</TT></BLOCKQUOTE>
80
 
<P>
81
 
This will create a babel.make file, numerous C headers, numerous C source 
82
 
files, and some FORTRAN 77 files. The files ending in <TT>_fStub.c</TT> are the 
83
 
FORTRAN 77 stubs that allow FORTRAN 77 to call a SIDL method. 
84
 
 
85
 
<P>
86
 
You will need to compile and link the files ending in <TT>_fStub.c</TT> 
87
 
into your application 
88
 
(i.e. <TT>STUBSRCS</TT> in <TT>babel.make</TT>). 
89
 
Normally, the IOR files (<TT>_IOR.c</TT>) are linked together
90
 
with the implementation file, so you probably don't need to compile them.
91
 
 
92
 
<P>
93
 
If you have some <TT><I CLASS="slanted">enum</I></TT>'s defined in your SIDL file, Babel will generate FORTRAN 77 
94
 
include files in the style of DEC FORTRAN (Compaq FORTRAN? (now HP Fortran???))
95
 
<TT>%INCLUDE</TT>. These files are named by taking the fully qualified name of the 
96
 
<TT><I CLASS="slanted">enum</I></TT>, changing the periods to underscores, and appending <TT>.inc</TT> . 
97
 
Here is an example of a generated include file.
98
 
 
99
 
<P>
100
 
<BR>
101
 
<PRE  CLASS="verbatim">
102
 
C       File:          enums_car.inc
103
 
C       Symbol:        enums.car-v1.0
104
 
C       Symbol Type:   enumeration
105
 
C       Babel Version: 0.5.0
106
 
C       Description:   Automatically generated; changes will be lost
107
 
C      
108
 
C       babel-version = 0.5.0
109
 
C       source-line   = 25
110
 
C      
111
 
        integer porsche
112
 
        parameter (porsche = 911)
113
 
        integer ford
114
 
        parameter (ford = 150)
115
 
        integer mercedes
116
 
        parameter (mercedes = 550)
117
 
</PRE></td></tr></table></blockquote>
118
 
<P>
119
 
 
120
 
<DIV CLASS="navigation"><HR>
121
 
<!--Navigation Panel-->
122
 
<A NAME="tex2html2743"
123
 
  HREF="node137.html">
124
 
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
125
 
<A NAME="tex2html2737"
126
 
  HREF="node131.html">
127
 
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
128
 
<A NAME="tex2html2731"
129
 
  HREF="node135.html">
130
 
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
131
 
<A NAME="tex2html2739"
132
 
  HREF="node14.html">
133
 
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
134
 
<A NAME="tex2html2741"
135
 
  HREF="node317.html">
136
 
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
137
 
<BR>
138
 
<B> Next:</B> <A NAME="tex2html2744"
139
 
  HREF="node137.html">Implementing Classes in FORTRAN</A>
140
 
<B> Up:</B> <A NAME="tex2html2738"
141
 
  HREF="node131.html">FORTRAN 77 Bindings</A>
142
 
<B> Previous:</B> <A NAME="tex2html2732"
143
 
  HREF="node135.html">Catching and Throwing Exceptions</A>
144
 
 &nbsp; <B>  <A NAME="tex2html2740"
145
 
  HREF="node14.html">Contents</A></B> 
146
 
 &nbsp; <B>  <A NAME="tex2html2742"
147
 
  HREF="node317.html">Index</A></B> </DIV>
148
 
<!--End of Navigation Panel-->
149
 
<ADDRESS>
150
 
<br><br>babel-0.10.2<br>users_guide Last Modified 2005-03-23<br><br><a href="http://www.llnl.gov/CASC/components">http://www.llnl.gov/CASC/components</a><br><a href="mailto:components@llnl.gov">components@llnl.gov</a>
151
 
</ADDRESS>
152
 
</BODY>
153
 
</HTML>