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: "Heesterman, Peter J" <Peter.Heesterman@ccfe.ac.uk>
To: "Benjamin Franksen" <benjamin.franksen@helmholtz-berlin.de>, "Tagger, Jueri" <jtagger@bnl.gov>, <tech-talk@aps.anl.gov>
Date: Thu, 19 Dec 2013 11:37:02 -0000
Hi Ben,

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.

Cheers,

Peter.


-----Original Message-----
From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Benjamin Franksen
Sent: 19 December 2013 11:12
To: Tagger, Jueri; tech-talk@aps.anl.gov
Subject: Re: Build of seq-2.1.15 with VS 2010 fails.

Hi Jueri

I am forwarding this to techtalk as I have no idea how to properly solve this build problem.

On Wednesday, December 18, 2013 14:47:27 Tagger, Jueri wrote:
> I tried to build seq-2.1.15 with base-3.14.12.4 using Visual Studio 
> 2010. The sequencer build failed at linking the test app 
> pvPutAsync.lib with error:
> 
> pvPutAsync.obj : error LNK2001: unresolved external symbol 
> _seq_sync_timeout pvPutAsync.exe : fatal error LNK1120: 1 unresolved 
> externals
> 
> To my understanding the seq_sync_timeout should be in seq.lib which 
> was successfully built earlier and linked in. However, it the missing 
> symbol is not there. Any ideas?

and as a follow up:
> Regarding: pvPutAsync.obj : error LNK2001: unresolved external symbol 
> _seq_sync_timeout
> 
> It appeared that linking of seq.lib with Visual Studio 2010 SP 1 
> requires additional link option: /EXPORT:seq_sync_timeout (Otherwise 
> variable double seq_sync_timeout = 10.0; from file 
> seq-2.1.15/src/seq/seq_if.c  does not get exported.)
> 
> I just rebuilt the seq.lib with the /EXPORT option but there is surely 
> a proper place where this option can be inserted.

Could someone (Andrew?) give advice on how to properly fix this in the sequencer? Should I add some magic annotation to the variable's declaration?

Cheers
Ben
--
"Make it so they have to reboot after every typo." ― Scott Adams

Attachment: seq_if.c
Description: seq_if.c


Replies:
New sequencer release fixes build problem on Windows Benjamin Franksen
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

Navigate by Date:
Prev: Re: Build of seq-2.1.15 with VS 2010 fails. Benjamin Franksen
Next: RE: Design strategies for CSS BOY screens kathryn.baker
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. Benjamin Franksen
Next: New sequencer release fixes build problem on Windows Benjamin Franksen
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 ·