Sign in to follow this  

Need help setting up enet

This topic is 2574 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello!

I'm trying to set up enet, but I seem to fail. I'm running ubuntu 10.10 and using NetBeans as IDE. I installed enet,linked it to the IDE, but it displays some strange errors:

/home/dreamcycle/Desktop/enet/main.cpp:6: undefined reference to `enet_initialize'
/home/dreamcycle/Desktop/enet/main.cpp:11: undefined reference to `enet_deinitialize'
/home/dreamcycle/Desktop/enet/main.cpp:28: undefined reference to `enet_host_create'
/home/dreamcycle/Desktop/enet/main.cpp:37: undefined reference to `enet_host_destroy'

I've seen these errors before and they were from the SDL (I forgot to add -lSDL_image and -lSDL_ttf to hmm... I don't know how its called ... g++ command) .

Any ideas?

Or maybe suggestions for another net library? (I'll use it for my backgammon - I'll try to make it a multiplayer server-client type)

Thanks in advance :)

Yours,
Ivelin Penchev

[Edited by - DreamCycle on November 29, 2010 12:44:05 PM]

Share this post


Link to post
Share on other sites
This question would be perfect on the NetBeans forums, given that this is a problem to get your NetBeans IDE to include the Enet library when building. (That, or you're compiling with the wrong language flavor, like 'extern "C"' for C++)

Share this post


Link to post
Share on other sites

This topic is 2574 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this