|
-
February 9th, 2004, 04:20 AM
#1
multiple declaration error
I have three files say
common_defs.h
main.c
#includes common_defs.h as well as common_defs.h
contains the main function
abc.c
#includes common_defs.h
i compile main.c and abs.c separately to creeate
the respective .o files
Now for the final compilation, my compiler (icc) gives multiple declaration error for all the constants defined in common_defs.h
Any solution,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|