Yeah, you'll definitely have to create it ;D Enet's source distribution comes with a VC project file (.dsp); try compiling that. It'll produce some sort of .lib file, then just point your project at it.<br><br>Another alternative to all this is that you just add all of the enet source files directly to your project and don't bother linking at all. I think that should work too. But linking is probably the better solution.
<br><br>- Paul<br><br><div><span class="gmail_quote">On 5/23/06, <b class="gmail_sendername">Matija Runkas</b> &lt;<a href="mailto:matija.runkas@zg.t-com.hr">matija.runkas@zg.t-com.hr</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>





<div bgcolor="#ffffff">
<div><font face="Arial" size="2">Hi,</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">thank you for you input, I tried to add enet.lib to 
Project -&gt; Settings -&gt; Link tab -&gt; Object/library modules, right at the 
end where</font></div>
<div><font face="Arial" size="2">tutorial said you should put ws2_32.lib, tried to 
compile and then got:</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2"><em>LINK : fatal error LNK1104: cannot open file 
&quot;enet.lib&quot;</em></font></div>
<div><em><font face="Arial" size="2"></font></em>&nbsp;</div>
<div><font face="Arial" size="2">Where do I get enet.lib? (/emote fears you will say 
&quot; you have to create it and ofc next question would be 
&quot;how?&quot;&nbsp;:-)</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">Thank you for your help</font></div>
<div><font face="Arial" size="2"></font>&nbsp;</div>
<div><font face="Arial" size="2">Matija</font></div>
<blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;"></blockquote></div><div><span class="e" id="q_10b61b98f1080ced_1">
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">----- Original Message ----- </div>
  <div style="background: rgb(228, 228, 228) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">
<b>From:</b> 
  <a title="paching@gmail.com" href="mailto:paching@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Paul Collier</a> 
  </div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b> <a title="enet-discuss@cubik.org" href="mailto:enet-discuss@cubik.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Discussion of the ENet library</a> </div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b> Tuesday, May 23, 2006 4:33 PM
</div>
  <div style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b> Re: [ENet-discuss] Newbie error 
  - VC++6</div>
  <div><br></div>Hello,<br><br>Yeah, you have to link against the enet library 
  in order to use it. You should probably go read up about this sort of thing, 
  you'll likely have to do it again ;D That -lenet line doesn't apply to VC++, 
  that's GCC command-line style. For VC++, you'll probably have to go into your 
  Project Settings in the Linker section and add enet.lib to the list of 
  libraries that the project needs.<br><br>Hope this helps,<br>- Paul<br><br>
  <div><span class="gmail_quote">On 5/23/06, <b class="gmail_sendername">Matija 
  Runkas</b> &lt;<a href="mailto:matija.runkas@zg.t-com.hr" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> 
  matija.runkas@zg.t-com.hr</a>&gt; wrote:</span>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div>
    <div bgcolor="#ffffff">
    <div><font face="Arial" size="2">Hi,</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">Im a newb in C++ waters so i need some quick 
    help.</font></div>
    <div><font face="Arial" size="2">Been doing some things in VC++ 6 and it worked 
    nicely, with alot of pain of course :-)</font></div>
    <div><font face="Arial" size="2">Anyway while working on network FPS game using, 
    well one game engine (dont want advertise here) I found it is cripling 
    me</font></div>
    <div><font face="Arial" size="2">since I am able to create games for only 4 
    players and its perfromance is not what I expected. In order to learn more 
    and make </font></div>
    <div><font face="Arial" size="2">this &quot;thing&quot; work properly I ventured into 
    creating network dll as this engine supports use of such 
things.</font></div>
    <div><font face="Arial" size="2">I tried RakNet and did some basic stuff with it 
    unfortunaly they changed their licencing and i dont have $$ to buy 
    it.</font></div>
    <div><font face="Arial" size="2">So i found Enet, look like very much what I 
    need.</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">Unfortunaly im a VC newb so I cant get it to 
    work.</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">I follwed brief instructions on how to get it 
    into&nbsp;my project and I have read trough threads on disscusion board 
    named </font></div>
    <div><font face="Arial" size="2">&quot;Initialization&quot; and havent found 
    solution.</font></div>
    <div><font face="Arial" size="2">I have included only:</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2"><em>#include &quot;enet\enet.h&quot;</em></font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">and added functions that are suposed to only 
    initialize and deinitialize Enet:</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2"><em>#define DLL_USE<br>#include 
    &quot;adll.h&quot;</em></font></div>
    <div><em></em>&nbsp;</div>
    <div><font face="Arial" size="2"><em></em></font>&nbsp;</div>
    <div><em></em>&nbsp;</div>
    <div><font face="Arial" size="2"><em>//#include &quot;win32.h&quot;</em></font></div>
    <div><em></em>&nbsp;</div>
    <div><font face="Arial" size="2"><em>BOOL APIENTRY DllMain( HANDLE hModule, 
    <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    DWORD&nbsp; ul_reason_for_call, 
    <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    LPVOID lpReserved<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    )<br>{<br>&nbsp;engine_bind();<br>&nbsp;&nbsp;&nbsp; return 
    TRUE;<br>}</em></font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2"><em>DLLFUNC var DllInitNet(void) //main (int 
    argc, char ** argv) <br>{<br>&nbsp;&nbsp;&nbsp; if (enet_initialize () != 
    0)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    //fprintf (stderr, &quot;An error occurred while initializing 
    ENet.\n&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 
    _VAR(1);//return EXIT_FAILURE;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; 
    atexit (enet_deinitialize);<br>&nbsp;return _VAR(0);<br>}</em></font></div>
    <div><em><font face="Arial" size="2"></font></em>&nbsp;</div>
    <div><font face="Arial" size="2">Compiling spits this out and i cant get rid of 
    it:</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2"><em>test1.obj : error LNK2001: unresolved 
    external symbol _enet_deinitialize<br>test1.obj : error LNK2001: unresolved 
    external symbol _enet_initialize<br>Debug/test1.dll : fatal error LNK1120: 2 
    unresolved externals<br>Error executing link.exe.</em></font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">In other &quot;similar&quot; threads people said &quot;put 
    -lenet&quot; somewhere, but I dont know where to put that, if that would solve 
    it?</font></div>
    <div><font face="Arial" size="2"></font>&nbsp;</div>
    <div><font face="Arial" size="2">Matija</font></div></div></div><br>_______________________________________________<br>ENet-discuss 
    mailing list<br><a href="mailto:ENet-discuss@cubik.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ENet-discuss@cubik.org</a><br><a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br><br><br></blockquote></div><br>
  </span></div><div><p>
  </p><hr></div><div><span class="q">

  <p></p>_______________________________________________<br>ENet-discuss mailing 
  list<br><a href="mailto:ENet-discuss@cubik.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ENet-discuss@cubik.org</a><br><a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
  </span></div><div><p>
  </p><hr>

  <p></p>No virus found in this incoming message.<br>Checked by AVG Free 
  Edition.<br>Version: 7.1.392 / Virus Database: 268.7.0/345 - Release Date: 
  22.5.2006<br><p></p><p></p></div>

</div><br>_______________________________________________<br>ENet-discuss mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">
http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br><br><br></blockquote></div><br>