Re: [Gems-users] multiple definition of...


Date: Fri, 26 Jan 2007 13:55:45 -0800 (PST)
From: "Dave Z." <zhu_dave@xxxxxxxxx>
Subject: Re: [Gems-users] multiple definition of...
I tried it, but it didn't work. Instead I'm using extern for my variables.

Thanks

----- Original Message ----
From: Mike Marty <mikem@xxxxxxxxxxx>
To: Gems Users <gems-users@xxxxxxxxxxx>
Sent: Friday, January 26, 2007 12:27:31 PM
Subject: Re: [Gems-users] multiple definition of...

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.
>
_______________________________________________
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.






 
____________________________________________________________________________________
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097

[← Prev in Thread] Current Thread [Next in Thread→]