I have successfully built asyn-4.10 with SHARED_LIBRARIES=YES and STATIC_BUILD=NO on Windows with Visual Studio 2008 and I also ran into those exact problems when I was compiling asyn previously. My solution was rather simple since I wasn't intending to use SNCSEQ I commented out that test app from the makefile.
This will of course not solve your problem if you need the SNCSEQ module. I have noticed that with using the Visual Studio compiler that there are some preprocessor irregularities in how the epicsShareFunc and epicsShareDef etc.. get translated into the proper __declspec() etc.. It is a bit of a hack, but you can try manually defining what you think should be the correct __declspec() for the pasynManager object in the proper header file. I was experimenting with this previously.
Richard Pastrick
Associate Software Engineer
Xradia Inc
5052 Commercial Cir
Concord CA 94520
925-288-1228 Ext 1151
925-771-8051 (direct line)
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Mark Rivers
Sent: Wednesday, August 05, 2009 11:41 AM
To: John Dobbins; EPICS Tech-Talk
Subject: RE: Building ASYN on Windows
John,
That is probably a problem with the epicsShareFunc stuff. It looks like you are building with SHARED_LIBRARIES=YES and STATIC_BUILD=NO. I know that it works OK with SHARED_LIBRARIES=NO and STATIC_BUILD=YES. I like the latter settings, because then you can take your .exe file to any Windows machine without having to also copy dozens of DLLs.
Mark
________________________________
From: [email protected] on behalf of John Dobbins
Sent: Wed 8/5/2009 1:30 PM
To: EPICS Tech-Talk
Subject: Building ASYN on Windows
All,
I am building ASYN 4-10 wth EPICS 3.14.10 on a Windows machine using
Visual Studio 2005, Microsoft C/C++ Optimizing Compiller Version
14.00.50727.762 for 80X86, Perl 5.8.9, GNU Make 3.8.1
The testIPServerApp generates the link error reported below.
Any advice appreciated, thanks.
John Dobbins
Cornell University
Lab for Elementary Particle Physics
make[2]: Entering directory
`W:/winDev/epics/R3.14.10/support/asyn/4-10/testIPSe
rverApp/src/O.win32-x86'
link /nologo /subsystem:windows /dll /LTCG /incremental:no /opt:ref /release
/implib:testIPServerSupport.lib /out:testIPServerSupport.dll
ipEchoServer.obj ipEchoServer2.obj ipSNCServer.obj
../../../lib/win32-x86/asyn.lib
W:/winDev/epics/R3.14.10/support/seq/2-0-12/lib/win32x86/seq.lib
W:/winDev/epics/R3.14.10/support/seq/2-0-12/lib/win32-x86/pv.lib
W:/winDev/epics/R3.14.10/support/base/lib/win32-x86/recIoc.lib
W:/winDev/epics/R3.14.10/support/base/lib/win32-x86/softDevIoc.lib
W:/winDev/epics/R3.14.10/support/base/lib/win32-x86/miscIoc.lib
W:/winDev/epics/R3.14.10/support/base/lib/win32-x86/rsrvIoc.lib
W:/winDev/epics/R3.14.10/support/base/lib/win32-x86/dbtoolsIoc.lib
W:/winDev/epics/R3.14.10/support/base/lib/win32-x86/asIoc.lib
W:/winDev/epics/R3.14.10/support/ba
se/lib/win32-x86/dbIoc.lib
W:/winDev/epics/R3.14.10/support/base/lib/win32-x86/registryIoc.lib
W:/winDev/epics/R3.14.10/support/base/lib/win32-x86/dbStaticIoc.lib
W:/winDev/epics/R3.14.10/support/base/lib/win32-x86/ca.lib
W:/winDev/epics/R3.14.10/support/base/lib/win32-x86/Com.lib
Creating library testIPServerSupport.lib and object
testIPServerSupport.exp
ipSNCServer.obj : error LNK2001: unresolved external symbol _pasynManager
ipSNCServer.obj : error LNK2001: unresolved external symbol _pasynTrace
ipSNCServer.obj : error LNK2001: unresolved external symbol _pasynOctetSyncIO
testIPServerSupport.dll : fatal error LNK1120: 3 unresolved externals
make[2]: *** [testIPServerSupport.dll] Error 1120
make[2]: Leaving directory
`W:/winDev/epics/R3.14.10/support/asyn/4-10/testIPSer
verApp/src/O.win32-x86'
make[1]: *** [install.win32-x86] Error 2
make[1]: Leaving directory
`W:/winDev/epics/R3.14.10/support/asyn/4-10/testIPSer
verApp/src'
make: *** [src.install] Error 2
The information in this email, including any attachments, is confidential and intended only for the recipient(s) listed. Any use of this email for any other purpose is prohibited. If you have received this email in error, please notify me immediately by reply email, delete this email, and do not disclose its contents to anyone.
- References:
- Building ASYN on Windows John Dobbins
- RE: Building ASYN on Windows Mark Rivers
- Navigate by Date:
- Prev:
RE: Building ASYN on Windows Mark Rivers
- Next:
RE: Building ASYN on Windows John Dobbins
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
RE: Building ASYN on Windows Mark Rivers
- Next:
RE: Building ASYN on Windows John Dobbins
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
<2009>
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|