473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

error:not a class

Hi friends,

i am new to c++ programming,when i compile c++ program got the error
as " not a class or struct name .I added all the headers files it
asked when compiling, but still getting error.
suggest me any idea that where i would have done wrong.

Error Report::
"RTPSource.hpp", line 49: cc0262: error: not a class or struct name

PLease explain me generally why this error occurs..

Any help in this would be appreciated.

thanks&regards

Nov 7 '07 #1
2 6682
* yeah:
Hi friends,

i am new to c++ programming,when i compile c++ program got the error
as " not a class or struct name .I added all the headers files it
asked when compiling, but still getting error.
suggest me any idea that where i would have done wrong.

Error Report::
"RTPSource.hpp", line 49: cc0262: error: not a class or struct name

PLease explain me generally why this error occurs..

Any help in this would be appreciated.

thanks&regards
Actually showing us the code would be better.

--
Derek
Nov 7 '07 #2
yeah wrote:
/*#ifndef _FRAMED_SOURCE_HPP

#include "FramedSource.hpp"
Ugh... Don't use /* to disable code. Use the #if. Comments don't
nest so if you inadvertantly add another /* */ style comment some where
you'll get a surprise.
class RTPSource: public FramedSource
I suspect that FramedSource is not defined at this point based on the
compiler error. While it appears that the FramedSource.hpp (the second
time it appears) should be included, the include guards are highly suspect.

I sometimes resort to a dodge to determine if code is actually getting
compiled or not in light of lots of #if and #include usage.

I stick crud like:

2.2.2.2

which is syntacitally invalid in places I wish to see if they are
reached. If I get an error about it, I know I got there.
Nov 7 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Oberon | last post by:
How do I deal with this? I am getting an error for each get in the Game class (see code below). In the simplified example below I have reduced this to just 3 fields, one which can be NULL. I...
0
by: Tina Daniel | last post by:
I have an .ascx that gives this error: "Parser Error Message: 'OurCompanyID.ThisAppNamespace.Menu' is not a valid base class because it does not extend class 'System.Web.UI.Page'." I didn't...
2
by: smeagol | last post by:
Hi, I keep getting this error message for a trans.log backup. Operating system error 112(error not found). The disk has about 6GB space free, and the backup should only take up about 550 MB, so...
6
by: Water Cooler v2 | last post by:
What're the members of the error class/object? Is there a complete reference to all JavaScript objects available on the Web?
5
by: crystalattice | last post by:
I've finally figured out the basics of OOP; I've created a basic character creation class for my game and it works reasonably well. Now that I'm trying to build a subclass that has methods to...
7
by: iporter | last post by:
I use the code below to authorise the download of certain files. Thus, instead of linking to the file in a wwwroot directory, I link to this code with the filename as a parameter, and the script...
7
by: siri11 | last post by:
hi everyone!!!! I have written a function that shud return a decimal value.But I'm getting an error in c#.net(windows Application) which is a build error--->not all code paths return a value.Can...
1
by: fretIT | last post by:
Hello, when I write web method using C# in Visual basic 2005, I can't return the string value to the client request. I got such kind of error Not all code paths return a value. Don't know how...
6
by: Myxamatosis | last post by:
Upon compiling my code for a fraction class, the error that i get is a good 50 or so repetitions of error: Class "Fraction" has no member named "Numer" and error: Class "Fraction" has no member...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.