If you made a new header file, make sure it protects against multiple
includes.
myfile.h
--------
#ifndef MY_FILE_H
#define MY_FILE_H
int my_global_variable;
#endif
> Hello,
>
> I've added new variables and functions in a header file. The header file is included in both SimicsProcessor and Sequencer. But I get compilation errors saying "multiple definition of" the variables I've defined. Where should I define such variables or put the header file so that I don't get such an error? Thank you for your help.
>
> Regards,
>
> Dave
>
>
>
>
>
> ____________________________________________________________________________________
> Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now.
>
> _______________________________________________
> Gems-users mailing list
> Gems-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
>
|