glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[glob2-devel] cvs compilation fix ?


From: Munteanu Alexandru Ionut
Subject: [glob2-devel] cvs compilation fix ?
Date: Sat, 07 Oct 2006 16:07:17 -0000
User-agent: Mutt/1.5.13 (2006-08-11)

On Sun, Oct 01, 2006 at 10:46:32AM -0700, Kyle Lutze wrote:
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4/sstream:464: 
> instantiated from 'std::basic_string<_CharT, _Traits, _Alloc> 
> std::basic_ostringstream<_CharT, _Traits, _Alloc>::str() const [with 
> _CharT = char, _Traits = std::char_traits<char>, _Alloc = 
> std::allocator<char>]'
> ./../libgag/include/TextStream.h:51:   instantiated from 'void 
> GAGCore::TextOutputStream::print(T) [with T = int]'
> ./../libgag/include/TextStream.h:60:   instantiated from here
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4/bits/basic_string.h:382:
>  
> error: '_M_copy' was not declared in this scope
> make[2]: *** [GameGUI.o] Error 1
> make[2]: Leaving directory `/home/appleboy/glob2-cvs/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/appleboy/glob2-cvs'
> make: *** [all] Error 2

I have updated my CVS version.
I have gcc version 4.1.2.

I don't think that I have the same error.
Although I have a strange error on GameGUI.cpp.

I'm not familiar with the glob2 code, but the first error was quite
easy to fix : just erase "ob" at the start of the GameGUI.cpp before
the comments.

The second error was when calling 
  setRememberUnit(selBuild->type,... :
type is not an integer, and setRememberUnit requires an integer as the
first parameter.

I have supposed that selBuild->typeNum would be the correct way to do
it and I have changed the first parameter of all the occurences of 
setRememberUnit calls to "->typeNum" instead of "->type".

I send with this mail the modified GameGUI.cpp

I don't know why, but I cannot update the changes to CVS.
Can someone please verify if I have write access to CVS ?

-- 
Munteanu Alexandru Ionut

Attachment: GameGUI.cpp
Description: Text Data

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]