Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
5a99cd50
Commit
5a99cd50
authored
Dec 04, 2007
by
simonpj@microsoft.com
Browse files
Change --shared to -shared in Win32 DLL docs
parent
dffddba5
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/users_guide/win32-dlls.xml
View file @
5a99cd50
...
...
@@ -294,7 +294,7 @@ option on all the Haskell modules that make up your application.
<para>
<indexterm><primary>
Creating a Win32 DLL
</primary></indexterm>
<indexterm><primary>
–
–
shared
</primary></indexterm>
<indexterm><primary>
–
shared
</primary></indexterm>
Sealing up your Haskell library inside a DLL is straightforward;
compile up the object files that make up the library, and then build
the DLL by issuing a command of the form:
...
...
@@ -302,12 +302,12 @@ the DLL by issuing a command of the form:
<para>
<screen>
ghc
–
–
shared -o foo.dll bar.o baz.o wibble.a -lfooble
ghc
–
shared -o foo.dll bar.o baz.o wibble.a -lfooble
</screen>
</para>
<para>
By feeding the ghc compiler driver the option
<option>
–
–
shared
</option>
, it
By feeding the ghc compiler driver the option
<option>
–
shared
</option>
, it
will build a DLL rather than produce an executable. The DLL will
consist of all the object files and archives given on the command
line.
...
...
@@ -347,12 +347,12 @@ you compile into a DLL must have a common root.
<listitem>
<para>
By default, the entry points of all the object files will be exported from
the DLL when using
<option>
–
–
shared
</option>
. Should you want to constrain
the DLL when using
<option>
–
shared
</option>
. Should you want to constrain
this, you can specify the
<emphasis>
module definition file
</emphasis>
to use
on the command line as follows:
<screen>
ghc
–
–
shared -o .... MyDef.def
ghc
–
shared -o .... MyDef.def
</screen>
See Microsoft documentation for details, but a module definition file
...
...
@@ -371,7 +371,7 @@ EXPORTS
<listitem>
<para>
In addition to creating a DLL, the
<option>
–
–
shared
</option>
option also
In addition to creating a DLL, the
<option>
–
shared
</option>
option also
creates an import library. The import library name is derived from the
name of the DLL, as follows:
...
...
@@ -485,7 +485,7 @@ ghc -c dllMain.c
Construct the DLL:
<screen>
ghc
–
–
shared -o adder.dll adder.o adder_stub.o dllMain.o
ghc
–
shared -o adder.dll adder.o adder_stub.o dllMain.o
</screen>
</para>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment