[Scrymud] Re: [Scrymud] Compiling on Redhat 7

Ben Greear greearb at candelatech.com
Mon Jan 15 18:34:55 PST 2001


user wrote:
> 
> Hi, I been trying to compile using Redhat 7, gcc 2.96 and I received the
> following errors.  What gcc version is the correct one to compile on?
> 
> I get the -fguiding-declls is no longer supported  on all the source
> code.
> 
> g++       -g -D_GNU_SOURCE -fguiding-decls -fhuge-objects -Wall
> -I/tmp/ScryMUD/m
> ud/include -c code_gen.cc
> cc1plus: warning: -fguiding-decls is no longer supported
> In file included from code_gen.h:32,
>                  from code_gen.cc:31:

Hrm, looks like the G++ folks have changed their mind again about
how their compiler is supposed to work.  I don't have RH 7 yet, and
probably won't upgrade to it before they come out with 7.1 (which
should contain a less-broken compiler.)

To fix the problem will probably require rewriting the template
code (again), and I'm not sure exactly how to go about that at
this time.

You could try changing the makefiles to use kg++ instead of
g++, but I'm not sure if that will work or not...

Ben

> /tmp/ScryMUD/mud/include/list2.h:582: warning: friend declaration `void
> clear_pt
> r_list (List<T> &)'
> /tmp/ScryMUD/mud/include/list2.h:582: warning:   declares a non-template
> functio
> n
> /tmp/ScryMUD/mud/include/list2.h:582: warning:   (if this is not what
> you intend
> ed, make sure the
> function template has already been declared and add <> after the
> function name h
> ere)
> /tmp/ScryMUD/mud/include/list2.h:584: warning: friend declaration `T Top
> (const
> List<T> &)'
> /tmp/ScryMUD/mud/include/list2.h:584: warning:   declares a non-template
> function
> /tmp/ScryMUD/mud/include/list2.h:585: warning: friend declaration `int
> IsEmpty (const List<T> &)'
> /tmp/ScryMUD/mud/include/list2.h:585: warning:   declares a non-template
> function
> /tmp/ScryMUD/mud/include/list2.h:586: warning: friend declaration `int
> HaveData
> (const T &, const
> List<T> &)'
> /tmp/ScryMUD/mud/include/list2.h:586: warning:   declares a non-template
> function
> g++      -g -D_GNU_SOURCE -fguiding-decls -fhuge-objects -Wall
> -I/tmp/ScryMUD/mud/include -L/tmp/ScryMUD/mud/lib  -o ./code_gen
> code_gen.o -lm -lstring2 -lbitfield -lcrypt
> code_gen.o: In function `LanguageEntry::clear(void)':
> /tmp/ScryMUD/mud/grrmud/server/code_gen.cc:87: undefined reference to
> `clear_ptr_list(List<LVPair *> &)'
> collect2: ld returned 1 exit status
> make: *** [code_gen] Error 1
> 
> Thank  Mark
> 
> _______________________________________________
> Scrymud mailing list  -  Scrymud at scry.WANfear.com
> http://www.WANfear.com/mailman/listinfo/scrymud

-- 
Ben Greear (greearb at candelatech.com)  http://www.candelatech.com
Author of ScryMUD:  scry.wanfear.com 4444        (Released under GPL)
http://scry.wanfear.com               http://scry.wanfear.com/~greear




More information about the ScryMUD mailing list