Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Linux Servers

Archive::Linux Servers Archive area for Linux Servers's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-03-2004, 02:03 PM
r2d2atemyhomework
Fire Beetle
 
Join Date: Dec 2003
Posts: 10
Default 01/03/2004 build, 0.5.3-DR2 Make fails (fix inside)

The latest version of 0.5.3-DR2 is failing to make on Linux.

The error received is:
client.cpp:3413: name lookup of `i' changed for new ISO `for' scoping
client.cpp:3401: using obsolete binding at `i'

Just need to give the second for loop in Client::Message_StringID it's own declared iterator rather than reusing 'i'. Diff of the fix is below:

Code:
3413,3416c3413,3416
<       for(i=0;i<9;i++){
<               if(messagearray[i]){
<                       strcpy((char*)bufptr,messagearray[i]);
<                       bufptr+=strlen(messagearray[i])+1;
---
>       for(int j=0;j<9;j++){
>               if(messagearray[j]){
>                       strcpy((char*)bufptr,messagearray[j]);
>                       bufptr+=strlen(messagearray[j])+1;
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:08 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3