[ENet-discuss] Link errors in VS 2008 - unresolved external symbol __imp__enet

Andrew Fenn andrewfenn at gmail.com
Fri Oct 17 12:21:10 PDT 2008


I'm getting these linker errors in visual studio 2008, any ideas?

Client.obj : error LNK2019: unresolved external symbol
__imp__enet_host_destroy referenced in function "public: __thiscall
Client::Client(void)" (??0Client@@QAE at XZ)
Server.obj : error LNK2001: unresolved external symbol __imp__enet_host_destroy
Client.obj : error LNK2019: unresolved external symbol
__imp__enet_packet_destroy referenced in function "public: __thiscall
Client::Client(void)" (??0Client@@QAE at XZ)
Server.obj : error LNK2001: unresolved external symbol
__imp__enet_packet_destroy
Client.obj : error LNK2019: unresolved external symbol
__imp__enet_peer_reset referenced in function "public: __thiscall
Client::Client(void)" (??0Client@@QAE at XZ)
Client.obj : error LNK2019: unresolved external symbol
__imp__enet_host_service referenced in function "public: __thiscall
Client::Client(void)" (??0Client@@QAE at XZ)
Server.obj : error LNK2001: unresolved external symbol __imp__enet_host_service
Client.obj : error LNK2019: unresolved external symbol
__imp__enet_host_connect referenced in function "public: __thiscall
Client::Client(void)" (??0Client@@QAE at XZ)
Client.obj : error LNK2019: unresolved external symbol
__imp__enet_address_set_host referenced in function "public:
__thiscall Client::Client(void)" (??0Client@@QAE at XZ)
Client.obj : error LNK2019: unresolved external symbol
__imp__enet_host_create referenced in function "public: __thiscall
Client::Client(void)" (??0Client@@QAE at XZ)
Server.obj : error LNK2001: unresolved external symbol __imp__enet_host_create
Client.obj : error LNK2019: unresolved external symbol
__imp__enet_initialize referenced in function "public: __thiscall
Client::Client(void)" (??0Client@@QAE at XZ)
Server.obj : error LNK2001: unresolved external symbol __imp__enet_initialize
Client.obj : error LNK2019: unresolved external symbol
__imp__enet_deinitialize referenced in function "public: __thiscall
Client::~Client(void)" (??1Client@@QAE at XZ)
Server.obj : error LNK2001: unresolved external symbol __imp__enet_deinitialize

Here is how I am calling enet

extern "C" {
	#include <enet/enet.h>
}


More information about the ENet-discuss mailing list