GIDForums

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC 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 26-Mar-2008, 15:53
ashraf_leaf ashraf_leaf is offline
New Member
 
Join Date: Nov 2007
Posts: 11
ashraf_leaf is on a distinguished road

Error C2011


Hi folks,

While running the program i got an error like
"error C2011: 'header' : 'struct' type redefinition:" and
"error C2011: 'image' : 'struct' type redefinition"

for debugging the error, i found that i have something




CPP / C++ / C Code:
/* The image header data structure      */
struct header {
	int nr, nc;             /* Rows and columns in the image */
	int oi, oj;             /* Origin */
};

/*      The IMAGE data structure        */
struct image {
		  
		struct header *info;  
		/* Pointer to header */
		unsigned char **data;           /* Pixel values */
};

i think i have some problem regarding struct header in struct image?am i right?if so then how can i fix it up?it would be appreciable to help me.thanks in advance.

ashraf
  #2  
Old 26-Mar-2008, 19:07
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 4,527
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: Error C2011


Quote:
Originally Posted by ashraf_leaf
for debugging the error, i found that i have something
There is nothing invalid in the lines that you posted.

Regards,

Dave
 

Recent GIDBlogGoing to Iraq 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

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

All times are GMT -6. The time now is 15:37.


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