mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 23:32:42 +01:00
Updated to upcoming 23.09
git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2393 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
[[Property:title|Generating libraries]]
|
||||
[[Property:weight|1]]
|
||||
[[Property:uuid|a2862dd7-1702-50b6-2505-74f9e1ac4b70]]
|
||||
There are two main types of libraries in Eiffel: precompiled Eiffel libraries and C libraries. Both kinds of libraries can be created via EiffelStudio. The former can only be used in Eiffel projects, C libraries can be used either in Eiffel programs, or in standard C programs.
|
||||
|
||||
To generate an Eiffel precompiled library:
|
||||
* Select the '''Precompilation Wizard''' in the '''Tools''' menu and follow the instructions,
|
||||
|
||||
or
|
||||
* Launch a new EiffelStudio session,
|
||||
* Select your project
|
||||
* Change the action to '''Precompile''',
|
||||
* Click '''Open'''
|
||||
|
||||
To generate a dynamically linked C library using Eiffel code:
|
||||
* Generate a definition file for this library, via the [[Dynamic library builder|Dynamic library Builder]] ,
|
||||
* Open the [[Advanced Options|Project Settings]] dialog,
|
||||
* In the '''Advanced''' section, set the '''Shared Library Definition''',
|
||||
* Enter the name of the definition you created in the first step(including the path if necessary),
|
||||
* Compile the current project.
|
||||
|
||||
The generated C library should be located in the EIFGENs|target_name|W_code directory in the directory of your project.
|
||||
|
||||
To generate a C library from a C compiler, please refer to the documentation of your C compiler.
|
||||
|
||||
{{seealso|<br/>
|
||||
[[Using libraries|Using libraries]] <br/>
|
||||
[[CECIL|CECIL library: calling Eiffel routines from C programs]] <br/>
|
||||
[[Command line|Command line options]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user