Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::General Support

Support::General Support Post all topics here having to do with errors while trying to connect to an EQEMu server but not about the setup/running of the Server itself.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-07-2009, 11:39 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I compiled 633 in Linux yesterday and it worked fine.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #2  
Old 06-08-2009, 12:44 AM
gaeorn
Developer
 
Join Date: Apr 2009
Location: USA
Posts: 478
Default

Add this at the top of the file and it should compile fine:

Code:
#include <algorithm>
Reply With Quote
  #3  
Old 06-08-2009, 11:17 AM
joechimo
Fire Beetle
 
Join Date: Mar 2007
Posts: 4
Default

After adding the include, I am continuing to get the same error:

Code:
In file included from clientlist.cpp:25:
clientlist.h:45: warning: ‘typedef’ was ignored in this declaration
clientlist.cpp: In function ‘std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > ParseRecipients(std::string)’:
clientlist.cpp:229: error: ‘sort’ was not declared in this scope
clientlist.cpp:231: error: ‘unique’ was not declared in this scope
clientlist.cpp: In function ‘void ProcessMailTo(Client*, std::string)’:
clientlist.cpp:322: warning: format not a string literal and no format arguments
clientlist.cpp:323: warning: format not a string literal and no format arguments
clientlist.cpp: In function ‘void ProcessCommandBuddy(Client*, std::string)’:
clientlist.cpp:417: warning: format not a string literal and no format arguments
clientlist.cpp:421: warning: format not a string literal and no format arguments
clientlist.cpp: In function ‘void ProcessCommandIgnore(Client*, std::string)’:
clientlist.cpp:467: warning: format not a string literal and no format arguments
clientlist.cpp: In member function ‘void Client::SendMailBoxes()’:
clientlist.cpp:933: warning: format not a string literal and no format arguments
clientlist.cpp: In member function ‘void Client::JoinChannels(std::string)’:
clientlist.cpp:1090: warning: format not a string literal and no format arguments
clientlist.cpp: In member function ‘void Client::LeaveChannels(std::string)’:
clientlist.cpp:1178: warning: format not a string literal and no format arguments
clientlist.cpp: In member function ‘void Client::SendChannelList()’:
clientlist.cpp:1262: warning: format not a string literal and no format arguments
clientlist.cpp: In member function ‘void Client::SendChannelMessage(std::string)’:
clientlist.cpp:1284: warning: suggest explicit braces to avoid ambiguous ‘else’
clientlist.cpp: In member function ‘void Client::SendChannelMessage(std::string, std::string, Client*)’:
clientlist.cpp:1438: warning: format not a string literal and no format arguments
clientlist.cpp:1439: warning: format not a string literal and no format arguments
clientlist.cpp:1440: warning: format not a string literal and no format arguments
clientlist.cpp: In member function ‘void Client::AnnounceJoin(ChatChannel*, Client*)’:
clientlist.cpp:1472: warning: format not a string literal and no format arguments
clientlist.cpp:1473: warning: format not a string literal and no format arguments
clientlist.cpp: In member function ‘void Client::AnnounceLeave(ChatChannel*, Client*)’:
clientlist.cpp:1492: warning: format not a string literal and no format arguments
clientlist.cpp:1493: warning: format not a string literal and no format arguments
clientlist.cpp: In member function ‘void Client::GeneralChannelMessage(std::string)’:
clientlist.cpp:1518: warning: format not a string literal and no format arguments
clientlist.cpp: In member function ‘void Client::ChannelModerate(std::string)’:
clientlist.cpp:1797: warning: suggest explicit braces to avoid ambiguous ‘else’
clientlist.cpp: In member function ‘void Client::SendNotification(int, std::string, std::string, int)’:
clientlist.cpp:2197: warning: format not a string literal and no format arguments
clientlist.cpp:2198: warning: format not a string literal and no format arguments
clientlist.cpp:2200: warning: format not a string literal and no format arguments
clientlist.cpp:2201: warning: format not a string literal and no format arguments
clientlist.cpp: In member function ‘void Client::SendFriends()’:
clientlist.cpp:2251: warning: format not a string literal and no format arguments
clientlist.cpp:2274: warning: format not a string literal and no format arguments
make[1]: *** [clientlist.o] Error 1
Reply With Quote
  #4  
Old 06-08-2009, 03:22 PM
gaeorn
Developer
 
Join Date: Apr 2009
Location: USA
Posts: 478
Default

Well, this is the location I put the include:

Code:
Index: ucs/clientlist.cpp
===================================================================
--- ucs/clientlist.cpp  (revision 642)
+++ ucs/clientlist.cpp  (working copy)
@@ -31,6 +31,7 @@
 #include "../common/EmuTCPServer.h"
 #include <list>
 #include <vector>
+#include <algorithm>
 #include <string>
 #include <cstdlib>
That eliminated the compile errors for me. Perhaps you should look at your c++ library information to see what other includes may be needed. That's how I found the solution that worked for me.
Reply With Quote
Reply

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 06:31 PM.


 

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