monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Monotone 0.30 make error - cmd_list.cc


From: Nathaniel Smith
Subject: Re: [Monotone-devel] Monotone 0.30 make error - cmd_list.cc
Date: Thu, 21 Sep 2006 17:31:09 -0700
User-agent: Mutt/1.5.13 (2006-08-11)

On Thu, Sep 21, 2006 at 04:41:55PM -0700, Richard Cave wrote:
>    cmd_list.cc:506: use of namespace `std' as expression
>    cmd_list.cc:506: parse error before `:' token

Thanks for the report.  This particular bug has just been fixed on
mainline.  The patch is:

--- cmd.hh      3f5caf1f33a64fdc90d224e46d1ab93673addb6c
+++ cmd.hh      a5b25faa889c42eef0639d9bfc8de35560e4c750
@@ -207,7 +207,7 @@ std::string commands::cmd_ ## C::desc() 
 } \
 std::string commands::cmd_ ## C::desc() \
 { \
- std:string result = _(desc_.c_str()); \
+ std::string result = _(desc_.c_str()); \
   result += "\n"; \
   result += (F("Alias for %s") % #realcommand).str(); \
   return result; \

I.e., you just need to replace "std:string" (a typo) with
"std::string" in cmd.hh.  With this patch, monotone builds fine with
gcc 3.3.  3.2 may or may not run into additional problems, I don't
know; 3.2 is very very old at this point.

-- Nathaniel

P.S.: PLOS is awesome!  Keep up the good work!

-- 
The Universe may  /  Be as large as they say
But it wouldn't be missed  /  If it didn't exist.
  -- Piet Hein




reply via email to

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