EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Build of seq-2.1.15 with VS 2010 fails.
From: Mark Rivers <[email protected]>
To: "'Andrew Johnson'" <[email protected]>, "Heesterman, Peter J" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Thu, 19 Dec 2013 17:40:43 +0000
Looking at shareLib.h it looks to me like epicsShareDef is only defined to be anything on VAXC.

For _WIN32 and __CYGWIN32__ it is the following

#   define epicsShareDef


Mark


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Andrew Johnson
Sent: Thursday, December 19, 2013 10:55 AM
To: Heesterman, Peter J
Cc: [email protected]
Subject: Re: Build of seq-2.1.15 with VS 2010 fails.

On 12/19/2013 05:37 AM, Heesterman, Peter J wrote:
> I have built seq-2.1.15 recently (VS2010), and experienced a similar problem.
> 
> The variable needs to be defined as epicsShareExtern - see attached file.

I haven't tried building this code on Windows, but I actually think the
variable should be marked epicsShareDef in the seq_if.c file where it is
defined, and epicsShareExtern in any header file that declares it.  The
rules for the various epicsShare* markers are explained in comments at
the top of the shareLib.h file; marking the seq_if.c version as
epicsShareExtern would be telling the compiler that the variable is
defined in some *other* file, but here it is actually being given a
value so this must be the definition (and hence epicsShareDef).

- Andrew
-- 
Advertising may be described as the science of arresting the human
intelligence long enough to get money from it. -- Stephen Leacock


Replies:
Re: Build of seq-2.1.15 with VS 2010 fails. Andrew Johnson
References:
Re: Build of seq-2.1.15 with VS 2010 fails. Benjamin Franksen
RE: Build of seq-2.1.15 with VS 2010 fails. Heesterman, Peter J
Re: Build of seq-2.1.15 with VS 2010 fails. Andrew Johnson

Navigate by Date:
Prev: Re: notification server Pete Jemian
Next: Re: Build of seq-2.1.15 with VS 2010 fails. Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Build of seq-2.1.15 with VS 2010 fails. Andrew Johnson
Next: Re: Build of seq-2.1.15 with VS 2010 fails. Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024