M
MoCha
hi all,
the following problem has taken up a lot of my time n hence i'm
turning to the group.
i have a header file in which there r several class declarations (n a
separate file for the funcn defs). now, in a different src file i'm
dynamically creating objects of these classes. (i've included the
header file)
in one of such creations the compiler complains abt the parse error
at the name of the class.
the code is:
nw.transferPacket(time, WIRELESS, new Information(newMSS, MSS,
MHid, MH, hostList[MHid - 1].movementBuffer))
the compiler says:
"mhList.cpp:471: parse error before `(' "
other classes from the same header r used in the same way with no
problem. i've included guards in my header files n checked for
circular references.
i'll b grateful if someone could provide likely reasons for the
error.
the following problem has taken up a lot of my time n hence i'm
turning to the group.
i have a header file in which there r several class declarations (n a
separate file for the funcn defs). now, in a different src file i'm
dynamically creating objects of these classes. (i've included the
header file)
in one of such creations the compiler complains abt the parse error
at the name of the class.
the code is:
nw.transferPacket(time, WIRELESS, new Information(newMSS, MSS,
MHid, MH, hostList[MHid - 1].movementBuffer))
the compiler says:
"mhList.cpp:471: parse error before `(' "
other classes from the same header r used in the same way with no
problem. i've included guards in my header files n checked for
circular references.
i'll b grateful if someone could provide likely reasons for the
error.