Help


 
Thread Tools Search this Thread
Top Forums Programming Help
# 1  
Old 02-22-2005
Help

i have a struct defined in a .h file

now 2 other C files are in cluding this .h file

so during make file i get a error sayiny that the variables in this structure are being redifined

how do i encounter this

i would also like to know what causes this
# 2  
Old 02-22-2005
Quote:
Originally Posted by wojtyla
i have a struct defined in a .h file

now 2 other C files are in cluding this .h file

so during make file i get a error sayiny that the variables in this structure are being redifined

how do i encounter this

i would also like to know what causes this
Are you including that header file in any other header file.
If Yes, that may due to multiple inclusion of that header file, may be included indirectly from some other header file.
# 3  
Old 02-22-2005
re

Found the mistake

a stupid one to

Didnt do A #ifndef
#endif
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question