GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 25-Jan-2006, 21:08
weeb0 weeb0 is offline
New Member
 
Join Date: Jan 2006
Posts: 17
weeb0 is on a distinguished road
Angry

multiple types in one declaration ?!


Hi,

I have the following class in an header file

CPP / C++ / C Code:

 1: #ifndef ERROR_THROWS
 2: #define ERROR_THROWS
 3:
 4: class cserial_throws
 5: {
 6: public:
 7:	 char message_t[1024];
 8:	 int error_number;
 9: };
10:
11: #endif


when I use the definition and include the header in my project, I get the following message from the g++ compiler:

error_throws.h :9: error: multiple types in one declaration

Do somebody know what could be the problem ?

thank you!
  #2  
Old 25-Jan-2006, 21:16
Paramesh's Avatar
Paramesh Paramesh is offline
Regular Member
 
Join Date: Sep 2005
Location: The Milky Way
Posts: 927
Paramesh is a jewel in the roughParamesh is a jewel in the roughParamesh is a jewel in the rough

Re: multiple types in one declaration ?!


Go through some other source files you have, and check whether you missed out a semicolon after the end of a class or struct.

Regards,
Paramesh.
__________________

Don't walk in front of me, I may not follow.
Don't walk behind me, I may not lead.
Just walk beside me and be my friend.
  #3  
Old 25-Jan-2006, 21:23
weeb0 weeb0 is offline
New Member
 
Join Date: Jan 2006
Posts: 17
weeb0 is on a distinguished road

Re: multiple types in one declaration ?!


DAMN!

You are so RIGHT!

thanx :-)
 
 

Recent GIDBlogPython ebook by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple storage classes in declaration of `GenError' colossus73 C++ Forum 2 27-Sep-2005 08:53
Class declaration fazio C++ Forum 3 23-Aug-2005 19:53
Linker errors with multiple file progam nkhambal C Programming Language 2 24-Apr-2005 03:37
strange sizeof(structure) - multiple of 8 pinkpanther C Programming Language 11 30-May-2004 08:20

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 11:01.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.