Jump to content
  • 0
Arcenciel

Compile Issues

Question

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

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

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

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

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

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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.