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> <<a href="mailto:matija.runkas@zg.t-com.hr">matija.runkas@zg.t-com.hr</a>> 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> </div>
<div><font face="Arial" size="2">thank you for you input, I tried to add enet.lib to
Project -> Settings -> Link tab -> 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> </div>
<div><font face="Arial" size="2"><em>LINK : fatal error LNK1104: cannot open file
"enet.lib"</em></font></div>
<div><em><font face="Arial" size="2"></font></em> </div>
<div><font face="Arial" size="2">Where do I get enet.lib? (/emote fears you will say
" you have to create it and ofc next question would be
"how?" :-)</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Thank you for your help</font></div>
<div><font face="Arial" size="2"></font> </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> <<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>> 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> </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 "thing" 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> </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> </div>
<div><font face="Arial" size="2">I follwed brief instructions on how to get it
into my project and I have read trough threads on disscusion board
named </font></div>
<div><font face="Arial" size="2">"Initialization" 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> </div>
<div><font face="Arial" size="2"><em>#include "enet\enet.h"</em></font></div>
<div><font face="Arial" size="2"></font> </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> </div>
<div><font face="Arial" size="2"><em>#define DLL_USE<br>#include
"adll.h"</em></font></div>
<div><em></em> </div>
<div><font face="Arial" size="2"><em></em></font> </div>
<div><em></em> </div>
<div><font face="Arial" size="2"><em>//#include "win32.h"</em></font></div>
<div><em></em> </div>
<div><font face="Arial" size="2"><em>BOOL APIENTRY DllMain( HANDLE hModule,
<br>
DWORD ul_reason_for_call,
<br>
LPVOID lpReserved<br>
)<br>{<br> engine_bind();<br> return
TRUE;<br>}</em></font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"><em>DLLFUNC var DllInitNet(void) //main (int
argc, char ** argv) <br>{<br> if (enet_initialize () !=
0)<br> {<br>
//fprintf (stderr, "An error occurred while initializing
ENet.\n");<br> return
_VAR(1);//return EXIT_FAILURE;<br> }<br>
atexit (enet_deinitialize);<br> return _VAR(0);<br>}</em></font></div>
<div><em><font face="Arial" size="2"></font></em> </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> </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> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">In other "similar" threads people said "put
-lenet" somewhere, but I dont know where to put that, if that would solve
it?</font></div>
<div><font face="Arial" size="2"></font> </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>