[ENet-discuss] Installing..

Francisco Selles fsellesa at hotmail.com
Wed Sep 21 17:42:28 PDT 2005


Adam Wrote:
>It doesn't look like you're telling the compiler to link
>libenet.  Try adding -lenet to the commandline.

Thanks and sorry..
I didn't notice that my compiler was not seeing the lib, but even so that 
continues get following mistakes :

Project   : Win32 App
Compiler  : GNU GCC Compiler (called directly)
Directory : C:\Documents and Settings\FSelles\Desktop\w32\
--------------------------------------------------------------------------------
Switching to target: default
mingw32-g++.exe      -I..\..\..\..\Enet\include -I"..\..\..\..\Program 
Files\CodeBlocks\include"  -I"C:\Program Files\CodeBlocks\include" -c 
main.cpp -o .objs\main.o
mingw32-g++.exe   -L"..\..\..\..\Program Files\CodeBlocks\lib"  
-L"C:\Program Files\CodeBlocks\lib" -o win32gui.exe .objs\main.o    -lenet   
   -lgdi32 -luser32 -lkernel32  -mwindows
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x21):win32.c: undefined 
reference to `WSAStartup at 8'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x53):win32.c: undefined 
reference to `WSACleanup at 0'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x7c):win32.c: undefined 
reference to `WSACleanup at 0'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0xb7):win32.c: undefined 
reference to `gethostbyname at 4'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x11c):win32.c: undefined 
reference to `gethostbyaddr at 12'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x18f):win32.c: undefined 
reference to `socket at 12'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x1d5):win32.c: undefined 
reference to `ioctlsocket at 12'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x202):win32.c: undefined 
reference to `setsockopt at 20'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x23b):win32.c: undefined 
reference to `htons at 4'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x273):win32.c: undefined 
reference to `bind at 12'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x29a):win32.c: undefined 
reference to `listen at 8'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x2af):win32.c: undefined 
reference to `closesocket at 4'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x2fc):win32.c: undefined 
reference to `htons at 4'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x325):win32.c: undefined 
reference to `connect at 12'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x37b):win32.c: undefined 
reference to `accept at 12'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x3ad):win32.c: undefined 
reference to `ntohs at 4'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x3d3):win32.c: undefined 
reference to `closesocket at 4'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x3f9):win32.c: undefined 
reference to `htons at 4'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x479):win32.c: undefined 
reference to `WSASendTo at 36'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x486):win32.c: undefined 
reference to `WSAGetLastError at 0'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x52e):win32.c: undefined 
reference to `WSARecvFrom at 36'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x53b):win32.c: undefined 
reference to `WSAGetLastError at 0'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x597):win32.c: undefined 
reference to `ntohs at 4'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x719):win32.c: undefined 
reference to `select at 20'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x76a):win32.c: undefined 
reference to `__WSAFDIsSet at 8'
..\..\..\..\Program 
Files\CodeBlocks\lib/libenet.a(win32.o)(.text+0x793):win32.c: undefined 
reference to `__WSAFDIsSet at 8'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 4 seconds)
26 errors, 0 warnings

Thank you

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



More information about the ENet-discuss mailing list