🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49490

Help with gcc/c++ problem

#49490
From: Joseph Thomas
Date: Tue, 25 Jan 1994 23:25
68 lines
3419 bytes
	I'm not a C++ person so don't know if this is related to the
program or gcc. Anyways, I'm trying to compile a package (osimis)
which generates an error. Can someone interpret what's happening and
suggest a "solution"? Thanks.

	SGI Challenge XL, IRIX 5.1.1.1
	Gcc 2.5.7

zifnab> cat test.cc
#include <stdio.h>

typedef long    Boolean;

class   Menu_Window
{
};

class   StringDialog
{
};

class   Browser_Window
{
public:
        StringDialog    *_modify_editor;
        Boolean         set_attribute(char *, char *);
        void            modify();
};

typedef Boolean       (Menu_Window::*Menu_Valid_Fn)(char *, const char *);

void Browser_Window::modify()
{
        // Change value

        _modify_editor->Read_Input(NULL,
                (Menu_Valid_Fn)&Browser_Window::set_attribute,	// <-- Error is here...
                        (char *) NULL, (char *) NULL);

}

zifnab> gcc -v -c test.cc
Reading specs from /usr/local/lib/gcc-lib/mips-sgi-irix5.1.1.1/2.5.7/specs
gcc version 2.5.7
 /usr/local/lib/gcc-lib/mips-sgi-irix5.1.1.1/2.5.7/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=5 -Dunix -Dmips -Dsgi -Dhost_mips -DMIPSEB -DSYSTYPE_SVR4 -D_SVR4_SOURCE -D_MODERN_C -D__DSO__ -D_MIPS_SIM=_MIPS_SIM_ABI32 -D_MIPS_SZPTR=32 -D__unix__ -D__mips__ -D__sgi__ -D__host_mips__ -D__MIPSEB__ -D__SYSTYPE_SVR4__ -D___SVR4_SOURCE__ -D___MODERN_C__ -D__DSO__ -D___MIPS_SIM__=_MIPS_SIM_ABI32 -D___MIPS_SZPTR__=32 -D__unix -D__mips -D__sgi -D__host_mips -D__MIPSEB -D__SYSTYP


E_SVR4 -D___SVR4_SOURCE -D___MODERN_C -D__DSO__ -D___MIPS_SIM=_MIPS_SIM_ABI32 -D___MIPS_SZPTR=32 -Asystem(unix) -Asystem(svr4) -Acpu(mips) -Amachine(sgi) -D__CHAR_UNSIGNED__ -D__EXTENSIONS__ -D_SGI_SOURCE -D_LONGLONG -D_LANGUAGE_C_PLUS_PLUS -D_MIPS_FPSET=16 -D_MIPS_ISA=_MIPS_ISA_MIPS1 -D_MIPS_SZINT=32 -D_MIPS_SZLONG=32 test.cc /var/tmp/cca005Te.i
GNU CPP version 2.5.7 [AL 1.1, MM 40] SGI running IRIX 5.0
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/g++-include
 /usr/local/include
 /usr/local/mips-sgi-irix5.1.1.1/include
 /usr/local/lib/gcc-lib/mips-sgi-irix5.1.1.1/2.5.7/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/mips-sgi-irix5.1.1.1/2.5.7/cc1plus /var/tmp/cca005Te.i -quiet -dumpbase test.cc -version -o /var/tmp/cca005Te.s
GNU C++ version 2.5.7 [AL 1.1, MM 40] SGI running IRIX 5.0 compiled by GNU C version 2.5.7.
test.cc: In method `void Browser_Window::modify()':
test.cc:28: conversion to non-scalar type requested

--
Joseph Thomas                           E/Mail:  jpt@msc.edu
Minnesota Supercomputer Center          Tel:     +1 612 337 3558
1200 Washington Ave So.
Minneapolis, MN     55415-1227          FAX:     +1 612 337 3400
Technical Details
Message-ID: <2i49pe$q6e@uc.msc.edu>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!news.umbc.edu!eff!news.kei.com!yeshua.marcam.com!zip.eecs.umich.edu!news2.cis.umn.edu!msc.edu!uh.msc.edu!jpt

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,7003364ea5500631,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1994-01-26 06:57:59 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!news.umbc.edu!eff!news.kei.com!yeshua.marcam.com!zip.eecs.umich.edu!news2.cis.umn.edu!msc.edu!uh.msc.edu!jpt
From: jpt@uh.msc.edu (Joseph Thomas)
Newsgroups: gnu.gcc.help
Subject: Help with gcc/c++ problem
Date: 25 Jan 1994 23:25:34 GMT
Organization: Minnesota Supercomputer Center, Minneapolis, MN
Lines: 66
Message-ID: <2i49pe$q6e@uc.msc.edu>
NNTP-Posting-Host: uh.msc.edu