1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
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 -->
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">
16
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
17
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
19
<LINK REL="STYLESHEET" HREF="users_guide.css">
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">
29
<DIV CLASS="navigation"><!--Navigation Panel-->
30
<A NAME="tex2html2743"
32
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
33
<A NAME="tex2html2737"
35
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
36
<A NAME="tex2html2731"
38
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
39
<A NAME="tex2html2739"
41
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
42
<A NAME="tex2html2741"
44
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A>
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
<B> <A NAME="tex2html2740"
53
HREF="node14.html">Contents</A></B>
54
<B> <A NAME="tex2html2742"
55
HREF="node317.html">Index</A></B>
58
<!--End of Navigation Panel-->
60
<H1><A NAME="SECTION03350000000000000000"></A>
63
Invoking Babel to generate FORTRAN 77 Stubs
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>.
73
<TT> <TT>%</TT> <TT><B>babel -client=f77 file.sidl</B></TT>
75
</TT></BLOCKQUOTE>or simply
77
<TT> <TT>%</TT> <TT><B>babel -c=f77 file.sidl</B></TT>
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.
86
You will need to compile and link the files ending in <TT>_fStub.c</TT>
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.
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.
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
108
C babel-version = 0.5.0
112
parameter (porsche = 911)
114
parameter (ford = 150)
116
parameter (mercedes = 550)
117
</PRE></td></tr></table></blockquote>
120
<DIV CLASS="navigation"><HR>
121
<!--Navigation Panel-->
122
<A NAME="tex2html2743"
124
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
125
<A NAME="tex2html2737"
127
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
128
<A NAME="tex2html2731"
130
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
131
<A NAME="tex2html2739"
133
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
134
<A NAME="tex2html2741"
136
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A>
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
<B> <A NAME="tex2html2740"
145
HREF="node14.html">Contents</A></B>
146
<B> <A NAME="tex2html2742"
147
HREF="node317.html">Index</A></B> </DIV>
148
<!--End of Navigation Panel-->
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>