fixes for linux compile errors from recent GG changes

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Post Reply
Message
Author
User avatar
Dilvish
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

fixes for linux compile errors from recent GG changes

#1 Post by Dilvish »

I just committed some fixes for gcc compile errors caused by the recent GG changes. Some were typical typename issues that we've seen before but there were a few others. Here's the summary so you'll know why I made these changes, in case you want to try something different.

Code: Select all

GG/GG/Enum.h:165:9: error: need ‘typename’ before ‘std::map<EnumType, std::basic_string<char> >::const_iterator’ because ‘std::map<EnumType, std::basic_string<char> >’ is a dependent scope
added typename a couple places

Code: Select all

GG/GG/Enum.h:115:72: error: storage class specifiers invalid in friend function declarations
removed 'static' a few places in a macro

Code: Select all

GG/GG/Enum.h:57:53: error: ‘INT_MIN’ was not declared in this scope
added #include <climits>
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

User avatar
Bigjoe5
Designer and Programmer
Posts: 2058
Joined: Tue Aug 14, 2007 6:33 pm
Location: Orion

Re: fixes for linux compile errors from recent GG changes

#2 Post by Bigjoe5 »

Yep, all those changes are fine as far as I'm concerned. Thanks for letting me know of those issues.
Warning: Antarans in dimensional portal are closer than they appear.

Post Reply