![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Quote:
If Yes, that may due to multiple inclusion of that header file, may be included indirectly from some other header file. |
|
#3
|
|||
|
|||
|
re
Found the mistake
a stupid one to Didnt do A #ifndef #endif |
|||
| Google The UNIX and Linux Forums |