[ENet-discuss] Installing..

Francisco Selles fsellesa at hotmail.com
Tue Sep 20 18:54:06 PDT 2005


Lee Wrote:

>Do not include ANYTHING EXCEPT <enet/enet.h>. This means, do not include 
>unix.h. Do not include win32.h. Really, it means do not include anything at 
>all from enet except <enet/enet.h>.

>Lee
_______________________________________________________________


I understood,

but don´t work, I maintained just:

#include <windows.h>

#include "enet/enet.h"
#include <stdio.h>

..and the following error occured:

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        
-lgdi32 -luser32 -lkernel32  -mwindows
.objs\main.o(.text+0xa):main.cpp: undefined reference to `enet_initialize'
.objs\main.o(.text+0x48):main.cpp: undefined reference to 
`enet_deinitialize'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 2 seconds)
2 errors, 0 warnings



I placed libenet.a in "C:\Program Files\CodeBlocks\lib" , but didn't 
worked..

these are the files that I compiled to form " libenet.a "

host.c
list.c
memory.c
packet.c
peer.c
protocol.c
unix.c
win32.c

perhaps it is why I compiled unix. c together or because I compiled all 
files. c in a static library just, that can be?

Selles

_________________________________________________________________
MSN Messenger: instale grátis e converse com seus amigos. 
http://messenger.msn.com.br



More information about the ENet-discuss mailing list