View Single Post
  #3  
Old 01-19-2011, 05:04 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

From a quick 'google' this appears to be due to some changes in G++ 4.5. You need to remove ::pair from lines 1404 and 1427, i.e.
Code:
Index: tradeskills.cpp
===================================================================
--- tradeskills.cpp     (revision 1832)
+++ tradeskills.cpp     (working copy)
@@ -1401,7 +1401,7 @@
                }*/
                uint32 item = (uint32)atoi(row[0]);
                uint8 num = (uint8) atoi(row[1]);
-               spec->onsuccess.push_back(pair<uint32,uint8>::pair(item, num));
+               spec->onsuccess.push_back(pair<uint32,uint8>(item, num));
        }
        mysql_free_result(result);

@@ -1424,7 +1424,7 @@
                        }*/
                        uint32 item = (uint32)atoi(row[0]);
                        uint8 num = (uint8) atoi(row[1]);
-                       spec->onfail.push_back(pair<uint32,uint8>::pair(item, num));
+                       spec->onfail.push_back(pair<uint32,uint8>(item, num));
                }
                mysql_free_result(result);
        }
That is a 'diff', but essentially, open tradeskills.cpp with an editor, go to lines 1404, remove ::pair, and then do the same on line 1427.

All the other 'warnings' can be safely ignored.

Last edited by Derision; 01-19-2011 at 05:14 PM..
Reply With Quote