Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: about mca
From: "黄松" <huangsong@ihep.ac.cn>
To: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Fri, 2 Jun 2006 11:50:10 +0800
Hi,

I got the following error code when I compiled mca under windows.

***************************************************************************
>> 
>> mcacompile
 This is mex, Copyright 1984-2001 The MathWorks, Inc. 
 
-> Default options filename found in C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R12 
---------------------------------------------------------------- 
->    Options file           = C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R12\mexopts.bat 
      MATLAB                 = C:\MATLAB 
->    COMPILER               = cl 
->    Compiler flags: 
         COMPFLAGS           =  -DEPICS_DLL_NO -DWIN32 -c -Zp8 -G5 -W3 -DMATLAB_MEX_FILE -nologo -DDB_TEXT_GLBLSOURCE 
         OPTIMFLAGS          = -O2 -Oy- -DNDEBUG 
         DEBUGFLAGS          = -Zi -Fd"mca.pdb" 
         arguments           =  -DDB_TEXT_GLBLSOURCE -DGCC -DEPICS_DLL_NO -ID:/work/EPICS/EPICS/base/include -ID:/work/EPICS/EPICS/base/include/os/win32-x86 
         Name switch         = /Fo 
->    Pre-linking commands   =  
->    LINKER                 = link 
->    Link directives: 
         LINKFLAGS           = /dll /export:mexFunction /MAP /LIBPATH:"C:\MATLAB\extern\lib\win32\microsoft\msvc60" libmx.lib libmex.lib libmatlbmx.lib libmat.lib /implib:_lib6065.x 
         LINKFLAGSPOST       =  
         Name directive      = /out:"mca.dll" 
         File link directive = D:\work\EPICS\EPICS\base\lib\WIN32\Com.lib D:\work\EPICS\EPICS\base\lib\WIN32\ca.lib 
         Lib. link directive =  
         Rsp file indicator  = @ 
->    Resource Compiler      = rc /fo "mexversion.res" 
->    Resource Linker        =  
---------------------------------------------------------------- 
 
 
--> "cl  -DDB_TEXT_GLBLSOURCE -DGCC -DEPICS_DLL_NO -ID:/work/EPICS/EPICS/base/include -ID:/work/EPICS/EPICS/base/include/os/win32-x86  -DEPICS_DLL_NO -DWIN32 -c -Zp8 -G5 -W3 -DMATLAB_MEX_FILE -nologo -DDB_TEXT_GLBLSOURCE /Fomca.obj -IC:\MATLAB\extern\include -IC:\MATLAB\simulink\include -O2 -Oy- -DNDEBUG mca.cpp" 
 
mca.cpp 
 
--> "cl  -DDB_TEXT_GLBLSOURCE -DGCC -DEPICS_DLL_NO -ID:/work/EPICS/EPICS/base/include -ID:/work/EPICS/EPICS/base/include/os/win32-x86  -DEPICS_DLL_NO -DWIN32 -c -Zp8 -G5 -W3 -DMATLAB_MEX_FILE -nologo -DDB_TEXT_GLBLSOURCE /FoMCAError.obj -IC:\MATLAB\extern\include -IC:\MATLAB\simulink\include -O2 -Oy- -DNDEBUG MCAError.cpp" 
 
MCAError.cpp 
 
--> "cl  -DDB_TEXT_GLBLSOURCE -DGCC -DEPICS_DLL_NO -ID:/work/EPICS/EPICS/base/include -ID:/work/EPICS/EPICS/base/include/os/win32-x86  -DEPICS_DLL_NO -DWIN32 -c -Zp8 -G5 -W3 -DMATLAB_MEX_FILE -nologo -DDB_TEXT_GLBLSOURCE /FoChannel.obj -IC:\MATLAB\extern\include -IC:\MATLAB\simulink\include -O2 -Oy- -DNDEBUG Channel.cpp" 
 
Channel.cpp 
 
--> "cl  -DDB_TEXT_GLBLSOURCE -DGCC -DEPICS_DLL_NO -ID:/work/EPICS/EPICS/base/include -ID:/work/EPICS/EPICS/base/include/os/win32-x86  -DEPICS_DLL_NO -DWIN32 -c -Zp8 -G5 -W3 -DMATLAB_MEX_FILE -nologo -DDB_TEXT_GLBLSOURCE /FoChannelAccess.obj -IC:\MATLAB\extern\include -IC:\MATLAB\simulink\include -O2 -Oy- -DNDEBUG ChannelAccess.cpp" 
 
ChannelAccess.cpp 
 
--> "rc /fo "mexversion.res"  "C:\MATLAB\extern\include\mexversion.rc"" 
 
    Contents of 6065_tmp.rsp: 
 D:\work\EPICS\EPICS\base\lib\WIN32\Com.lib D:\work\EPICS\EPICS\base\lib\WIN32\ca.lib mca.obj D:\work\EPICS\EPICS\base\lib\WIN32\Com.lib D:\work\EPICS\EPICS\base\lib\WIN32\ca.lib MCAError.obj D:\work\EPICS\EPICS\base\lib\WIN32\Com.lib D:\work\EPICS\EPICS\base\lib\WIN32\ca.lib Channel.obj D:\work\EPICS\EPICS\base\lib\WIN32\Com.lib D:\work\EPICS\EPICS\base\lib\WIN32\ca.lib ChannelAccess.obj  D:/work/EPICS/EPICS/base/lib/win32-x86/Com.lib  D:/work/EPICS/EPICS/base/lib/win32-x86/ca.lib mexversion.res 
 
 
--> "link /out:"mca.dll" /dll /export:mexFunction /MAP /LIBPATH:"C:\MATLAB\extern\lib\win32\microsoft\msvc60" libmx.lib libmex.lib libmatlbmx.lib libmat.lib /implib:_lib6065.x  @6065_tmp.rsp " 
 
Microsoft (R) Incremental Linker Version 6.00.8168 
Copyright (C) Microsoft Corp 1992-1998. All rights reserved. 
 
D:\work\EPICS\EPICS\base\lib\WIN32\Com.lib D:\work\EPICS\EPICS\base\lib\WIN32\ca.lib mca.obj D:\work\EPICS\EPICS\base\lib\WIN32\Com.lib D:\work\EPICS\EPICS\base\lib\WIN32\ca.lib MCAError.obj D:\work\EPICS\EPICS\base\lib\WIN32\Com.lib D:\work\EPICS\EPICS\base\lib\WIN32\ca.lib Channel.obj D:\work\EPICS\EPICS\base\lib\WIN32\Com.lib D:\work\EPICS\EPICS\base\lib\WIN32\ca.lib ChannelAccess.obj D:/work/EPICS/EPICS/base/lib/win32-x86/Com.lib D:/work/EPICS/EPICS/base/lib/win32-x86/ca.lib mexversion.res  
   Creating library _lib6065.x and object _lib6065.exp 
Channel.obj : error LNK2001: unresolved external symbol _dbr_value_size 
Channel.obj : error LNK2001: unresolved external symbol _dbr_size 
Channel.obj : error LNK2001: unresolved external symbol _dbf_text_dim 
mca.dll : fatal error LNK1120: 3 unresolved externals 
 
  C:\MATLAB\BIN\WIN32\MEX.PL: Error: Link of 'mca.dll' failed. 
 
 
??? Error using ==> mex
Unable to complete successfully

Error in ==> D:\work\matlab\mca\mcacompile.m
On line 10  ==>     -v 

>> 
>> 
>> 
**************************************************************************************************



VC version is 6.0
Matlab version is 6.2
EPICS BASE is 3.14.6

The mcacompile.m file is,

************************************************************
%MEXCOMMAND Make mca.mexglx from mcamain.cpp

%cd /matlab/toolbox/mca
mex mca.cpp MCAError.cpp Channel.cpp ChannelAccess.cpp ...
    D:/work/EPICS/EPICS/base/lib/win32-x86/Com.lib ...
    D:/work/EPICS/EPICS/base/lib/win32-x86/ca.lib ...
    -DDB_TEXT_GLBLSOURCE -DGCC -DEPICS_DLL_NO ...     
    -ID:/work/EPICS/EPICS/base/include ...
    -ID:/work/EPICS/EPICS/base/include/os/win32 ...
    -v 
*************************************************************


Best wishes and regards,
Huangsong
        huangsong@ihep.ac.cn
          2006-06-02

****************************************************
** Huang song
** Control Group of Accelerator center
** Institute of High Energy Physics
** P.O. Box 918(10)
** Beijing 100049, P.R. CHINA  
** Fax: +86-10-8823-6190
** E-mail: huangsong@ihep.ac.cn





Navigate by Date:
Prev: install Epicsbase3.14.8.2 on WinXP question Gan Quan
Next: need help btanu
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: install Epicsbase3.14.8.2 on WinXP question Gan Quan
Next: need help btanu
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·