This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
non-aggregate type question
- To: gcc at gcc dot gnu dot org
- Subject: non-aggregate type question
- From: "Jim M." <msg124 at hotmail dot com>
- Date: Mon, 15 Oct 2001 19:13:19 +0000
does anyone knows why i am getting these errors?.
linux.
J
g++ -c circuit.cc
.
.
circuit.cc: In method `void Circuit::Checkboard ()':
circuit.cc:916: request for member `Findstart' in `this', which is of
non-aggregate type `Circuit *'
circuit.cc:921: request for member `Open' in `this', which is of
non-aggregate type `Circuit *'
.
.
void Circuit::Findstart()
{
int x=0;
int y=1;
char tag ='n';
while (tag=='n' || tag =='N')
{
x=x+1;
if (x> (Breadboard.columns()-2) )
{
x=1;
y=y+1;
}
tag=Breadboard(x,y).Returntype();
}
Start.moveTo (x,y);
}
.
.
/*returns 0 is the current componet is a void */
int Circuit::Open()
{
int x,y;
x= (int)Current.x();
y= (int)Current.y();
char tag;
tag=Breadboard(x,y).Returntype();
if (tag=='n' || tag=='N')
{
return 0;
}
else
{
return 1;
}
}
.
.
Makefile:
prog3:prog3.o circuit.o deeqn.o point.o
g++ -o prog3 prog3.o circuit.o deeqn.o point.o
prog3.o:prog3.cc circuit.h deeqn.h
g++ -c prog3.cc
circuit.o: circuit.cc circuit.h array2.h component.h point.h
g++ -c circuit.cc
point.o: point.cc point.h
g++ -c point.cc
deeqn.o: deeqn.h deeqn.cc
g++ -c deeqn.cc
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp