Jump to content
  • 0

Compile Issues


Arcenciel

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

Is anyone else having compiling issues with the latest Revision 15161 using Visual Studio 2010?

My test server is running on a Windows 7 64-bit environment. I tried downloading a fresh copy off the SVN yet it won't compile properly.

http://pastebin.com/C9f3Jzdj

Edited by Arcenciel
Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  11/21/11
  • Last Seen:  

open src/map/mob.c and find:

#ifndef TXT_ONLY
if(db_use_sqldbs) {
 mob_read_sqldb();
 mob_read_sqlskilldb();
} else {
#endif /* TXT_ONLY */
 mob_readdb();
 mob_readskilldb();
}

replace with this and it should work:

see my other post, or better wait till someone can confirm that the replacement works.

[s]#ifndef TXT_ONLY

if(db_use_sqldbs) {

mob_read_sqldb();

mob_read_sqlskilldb();

}

else { /* TXT_ONLY */

mob_readdb();

mob_readskilldb();

}

#endif[/s]

[/code[/s]]

I´ve written a bugreport for this... hopefully i´m not that wrong... >.<

Edited by Gorowann
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  257
  • Reputation:   253
  • Joined:  11/29/11
  • Last Seen:  

Oh. Arcenciel, you're trying to compile TXT?

I never checked it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  11/21/11
  • Last Seen:  

I shouldn´t post something code related when my kids are around....

the else statement will never trigger and the txt version will not call mob_readdb(). I have only quick looked and have gone wrong by only looking at the { }

that should be better, ...i hope...

#ifndef TXT_ONLY
 mob_read_sqldb();
 mob_read_sqlskilldb();
#else /* TXT_ONLY */
 mob_readdb();
 mob_readskilldb();
#endif

Edited by Gorowann
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

Weird, I just tested compiling latest RAthena release but I don't get any compile errors.

I'm using win7 x86 and VSC++ 2008.. :)

Edited by Magnetix
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

Oh. Arcenciel, you're trying to compile TXT?

I never checked it.

Yeah, I just run my test server in TXT. XD

Thanks for the fix.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

Thanks for the quick fix calciumkid. :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  967
  • Reputation:   53
  • Joined:  11/13/11
  • Last Seen:  

Weird, I just tested compiling latest RAthena release but I don't get any compile errors.

I'm using win7 x86 and VSC++ 2008.. :)

lol

read post #1

he said x64

x86 and x64 are different

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  439
  • Reputation:   29
  • Joined:  12/08/11
  • Last Seen:  

I know. It's only meant to show the results compiling on 2 different machines. Either way issue is fixed so yeah, :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...