The cause of error LNK2001 is that MCA cannot find ca.lib and Com.lib.
"cd" to the MCA root directory and run:
mex -ID:\Tools\Epics\base-3.14.7\include -ID:\Tools\Epics\base-3.14.7
\include\os\WIN32 -v mca.cpp MCAError.cpp Channel.cpp ChannelAccess.cpp
dbStaticHost.lib ca.lib Com.lib
If you use MSVC to compile, you may find:
mca.cpp(588) : error C2065: 'min' : undeclared identifier
Then,you need to modify mca.cpp and add a line:
#define min(a, b) (((a) < (b)) ? (a) : (b))
Recompile, you will succeed.
- Replies:
- Re: Solution to install MCA on Windows Steven Banks
- Navigate by Date:
- Prev:
Re: Motor.h file broken for C Ronald L. Sluiter
- Next:
Re: Solution to install MCA on Windows Steven Banks
- 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: Motor.h file broken for C Doug Murray
- Next:
Re: Solution to install MCA on Windows Steven Banks
- 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
|