Argonne National Laboratory

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  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 
<== Date ==> <== Thread ==>

Subject: RE: Build of seq-2.1.15 with VS 2010 fails.
From: Mark Rivers <rivers@cars.uchicago.edu>
To: "'Andrew Johnson'" <anj@aps.anl.gov>, "Heesterman, Peter J" <Peter.Heesterman@ccfe.ac.uk>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
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: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Andrew Johnson
Sent: Thursday, December 19, 2013 10:55 AM
To: Heesterman, Peter J
Cc: tech-talk@aps.anl.gov
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 
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 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·