RakNet problem

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
squatter
Posts: 4
Joined: Sat Apr 22, 2006 7:18 am

RakNet problem

Post by squatter »

Hey guys!
I know that such question rather shouldn't be on this forum :?
I would like to add multiplayer to my game. I downloaded RakNet and tried to build sample application from official tutorial.

And of course long list of errors :(
Examples :
[Linker error] undefined reference to `inet_addr@4'
[Linker error] undefined reference to `closesocket@4'
[Linker error] undefined reference to `closesocket@4'
In dev-c++ I add to linker every *.lib, *.a file from RakNet directory and it still doesn't work :?

Any suggestions what is wrong ??
sudi
Posts: 1686
Joined: Fri Aug 26, 2005 8:38 pm

Post by sudi »

First of all this is the wrong place for raknet questions......
but u don'T have to link to so many libs.
Ok listen when u unpack ur raknet version their is a devproject in the mainfolder open it up and build it! You only link to that .a lib nothing else from raknet!!!!
oh and don't forget the winsock32 lib either before the raknet.a or after u have to try.
We're programmers. Programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. We're not excited by renovation:tinkering,improving,planting flower beds.
squatter
Posts: 4
Joined: Sat Apr 22, 2006 7:18 am

Post by squatter »

Works fine, thanks Sudi :D
Post Reply