1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>enet: Installation</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.1 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="classes.html"><span>Data Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
</ul></div>
<h1><a class="anchor" name="Installation">Installation</a></h1>ENet should be trivially simple to integrate with most applications.<p>
First, make sure you download the latest source distribution here <a class="el" href="SourceDistro.html">Source Distribution</a>.<h2><a class="anchor" name="Unix">
Unix-like Operating Systems</a></h2>
[to be completed]<h3><a class="anchor" name="SolarisBSD">
Solaris and BSD</a></h3>
When building ENet under Solaris, you must specify the -lsocket and -lnsl parameters to your compiler to ensure that the sockets library is linked in.<h2><a class="anchor" name="Windows">
Microsoft Windows</a></h2>
Using MSVC 6 under Windows simply drag all the ENet source files into your main project or, better yet, create a new static library project and make your executable dependent (Project|Dependencies) on ENet. There is also an enet.dsp provided.<p>
You will have to link to the Winsock2 libraries, so make sure to add ws2_32.lib to your library list (Project Settings | Link | Object/library modules).<h3><a class="anchor" name="DLL">
DLL</a></h3>
If you wish to build ENet as a DLL you must first define ENET_DLL within the project (Project Settings | C/C++ | Preprocessor | Preprocessor definitions) or, more invasively, simply define ENET_DLL at the top of <a class="el" href="enet_8h.html">enet.h</a>. <hr size="1"><address style="align: right;"><small>Generated on Wed Jun 6 14:33:50 2007 for enet by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
</body>
</html>
|