[ENet-discuss] Linker Errors
Brad Monahan
xbradx_00 at hotmail.com
Sat Aug 9 19:11:46 PDT 2003
Hi. I downloaded the source distribution of the enet library and created a
new static library project in msvc++ and compiled the code like was
mentioned on the enet installation page and everything compiled fine, but
when I linked the enet.lib library module to my application and included
enet.h and went to build the project, I get a couple linker errors. I even
tried including the source files in my project and not using the static
library. Here are the linker errors I get:
lobby.obj : error LNK2001: unresolved external symbol _enet_deinitialize
lobby.obj : error LNK2001: unresolved external symbol _enet_initialize
enet.lib(protocol.obj) : error LNK2001: unresolved external symbol
_enet_time_get
enet.lib(host.obj) : error LNK2001: unresolved external symbol
_enet_time_get
enet.lib(protocol.obj) : error LNK2001: unresolved external symbol
_enet_socket_send
enet.lib(protocol.obj) : error LNK2001: unresolved external symbol
_enet_socket_wait
enet.lib(protocol.obj) : error LNK2001: unresolved external symbol
_enet_socket_receive
enet.lib(host.obj) : error LNK2001: unresolved external symbol
_enet_socket_create
enet.lib(host.obj) : error LNK2001: unresolved external symbol
_enet_socket_destroy
Now, in my application I use the enet_initialize() and enet_deinitialize()
functions along with enet_host_flush(), enet_packet_create(),
enet_packet_destroy(), and enet_host_service(). As of now those are the only
enet library functions I use in my project. I don't see any reason why this
shouldn't compile. Am I missing something here? Is there something that
needs to be defined in my header to use the library statically or something?
Please help! :x
- brad
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
More information about the ENet-discuss
mailing list