-   Programming (
-   -   parse error before ; and } and , and return (

gogettergary 05-12-2005 02:33 AM

parse error before ; and } and , and return
the code is :
#ifndef CMetaInfoReader_h

#define CMetaInfoReader_h 1

template <class super>

class CMetaInfoReader : public super{



void MyService()








// cout<<"\n********* this is the shift case********************";


// m_pStorageHeader






the error is : from rfc_croutingflowcontroller.cpp:22:
/usr/include/IDB/ICHOROUS/include/VMM/StorageManager/CMetaInfoReader.h: In
member function `void CMetaInfoReader<super>::MyService()':
/usr/include/IDB/ICHOROUS/include/VMM/StorageManager/CMetaInfoReader.h:11: parse
error before `;' token

can anybody point out where exactly the error is.we r compiling using gcc .


jschiwal 05-12-2005 04:20 AM

Perhaps you could use indentation and less than 5 empty lines between lines of code to make it easier for people to read. You may get better responce that way. Also enclose the code between [ code] ... [ /code] markup when posting. (


PS. You have 5 open braces '{' and 4 closing braces '}'

ta0kira 05-12-2005 04:38 AM

I see 5 or so things that do not have a declaration, and you haven't included any headers or sources. This can't be the entire code, otherwise there would be a LOT more errors.

PS jschiwal: I think there are enough } for the {. I counted a few times, but I might be missing a {.

__J 05-12-2005 05:19 AM

Re: parse error before ; and } and , and return

Originally posted by gogettergary
.we r compiling using gcc .


is that a typo or are you really trying to compile it with gcc?

jschiwal 05-12-2005 06:20 AM

I miscounted myself.

Googling, I found this message from a couple of days ago.

Being curious, I found this on the web:

All times are GMT -5. The time now is 07:26 AM.