Author Topic: RakNet 2.47 Released  (Read 12278 times)

wrt

  • Full Member
  • ***
  • Posts: 139
  • Karma: 0
    • View Profile
Re: RakNet 2.47 Released
« Reply #15 on: April 03, 2006, 11:17:55 AM »
nah, that's not related to speex.

don't know what the problem is, but i'm pretty sure it has nothing to do with speex

cu wrt

Rak'kar

  • Administrator
  • Hero Member
  • *****
  • Posts: 6895
  • Karma: 291
    • View Profile
    • RakNet
Re: RakNet 2.47 Released
« Reply #16 on: April 03, 2006, 12:04:17 PM »
The error is that it can't find a C friend function.  Just figure it out.  It shouldn't take more than 5 minutes to get the solution.

Skinney

  • Guest
Re: RakNet 2.47 Released
« Reply #17 on: April 03, 2006, 12:05:37 PM »
wierd... does anyone have the 2.451 build? that was the previous build that i know worked on my previous Fedora dist...

Skinney

  • Guest
Re: RakNet 2.47 Released
« Reply #18 on: April 03, 2006, 12:07:40 PM »
The error is that it can't find a C friend function.  Just figure it out.  It shouldn't take more than 5 minutes to get the solution.

is it you or me who is going to figure it out? cause i didn't understand what you ment... i'm a newb :P...
btw, this couldnt be related to missing libraries or something?
i'll check the reposetories and install everything GCC related...

wrt

  • Full Member
  • ***
  • Posts: 139
  • Karma: 0
    • View Profile
Re: RakNet 2.47 Released
« Reply #19 on: April 03, 2006, 12:52:48 PM »
no, it's a problem with the code, nothing compiler related ( i guess)

Skinney

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 0
    • View Profile
Re: RakNet 2.47 Released
« Reply #20 on: April 03, 2006, 02:03:35 PM »
oh well...can't wait til its fixed... its gonna be awsome to continue coding in RakNet again :D

Rak'kar

  • Administrator
  • Hero Member
  • *****
  • Posts: 6895
  • Karma: 291
    • View Profile
    • RakNet
Re: RakNet 2.47 Released
« Reply #21 on: April 03, 2006, 04:55:47 PM »
Consider this a test to show off your programming skills.  If it was hard I wouldn't ask you to do it.

1. Comment out and recomment the prototype inside of the class definition of RakPeer
2. Do the same with the prototype at the top of RakPeer.cpp
3. Try adding extern "C" to one or the other, or both.
4. Try adding RakPeer:: to the function, and making it static.

Just play around with it it until it works.  One way or another has got to work, because otherwise the compiler would be worthless.

I'd do it myself but I don't have that version of GCC.

Skinney

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 0
    • View Profile
Re: RakNet 2.47 Released
« Reply #22 on: April 04, 2006, 01:08:50 PM »
fixed the problem... as you said, it was reletively simple...

in RakPeer.cpp replace line 52-56
Quote
#ifdef _WIN32
unsigned __stdcall UpdateNetworkLoop( LPVOID arguments )
#endif

with this

Quote
#ifdef _WIN32
unsigned __stdcall UpdateNetworkLoop( LPVOID arguments );
#else
void* UpdateNetworkLoop( void* arguments );
#endif

note the ; mark...  ;)
same procedure with the simpleTCPServer.cpp...
so it was a question of ; missing... im sorry for not seeing this error myself, in the future i will mess more around with the code before bitching here at the forums! :D