From: "Nicolai Brejnholt" <nicolai_f_b@hotmail.com>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: Problems linking MEX'ed object files.
Message-ID: <ef55661.0@webcrossing.raydaftYaTP>
Date: Thu, 3 May 2007 10:09:23 -0400
References: <ef55661.-1@webcrossing.raydaftYaTP>
Lines: 256
NNTP-Posting-Host: 195.83.126.10
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:406710



Wonder if it's allowed to bump posts?

Anyway, I added the .lib files to the list in my mexopts .bat file
and put the .bat file in the library where I link my objects. It now
finds .lib files, but it still doesn´t recoignize the functions. I
get:

Error! E2028: mxGetNumberOfElements_ is an undefined reference
Error! E2028: mxCalloc_ is an undefined reference
Error! E2028: mxGetString_ is an undefined reference
Error! E2028: mexWarnMsgTxt_ is an undefined reference
Error! E2028: ffiopn_ is an undefined reference
Error! E2028: ffgipr_ is an undefined reference
Error! E2028: ffgics_ is an undefined reference
Error! E2028: ffgpv_ is an undefined reference
Error! E2028: ffclos_ is an undefined reference
Error! E2028: ffwldp_ is an undefined reference
Error! E2028: fftplt_ is an undefined reference
Error! E2028: ffmnhd_ is an undefined reference
Error! E2028: ffukyj_ is an undefined reference
Error! E2028: ffukye_ is an undefined reference
Error! E2028: LoadElt_ is an undefined reference
Error! E2028: ffopentest_ is an undefined reference
Error! E2028: ffgnrw_ is an undefined reference
Error! E2028: ffukys_ is an undefined reference
Error! E2028: ffrprt_ is an undefined reference
Error! E2028: ffrsim_ is an undefined reference
Error! E2028: ffppre_ is an undefined reference
Error! E2028: ffgtvf_ is an undefined reference
Error! E2028: ffghdn_ is an undefined reference
Error! E2028: ffthdu_ is an undefined reference
Error! E2028: ffgkys_ is an undefined reference
Error! E2028: ffcmsg_ is an undefined reference
Error! E2028: ffcopy_ is an undefined reference
Error! E2028: ffmahd_ is an undefined reference
Error! E2028: ffgkye_ is an undefined reference
Error! E2028: ffgtam_ is an undefined reference
Error! E2028: ffgtnm_ is an undefined reference
Error! E2028: GetValInTable_ is an undefined reference
Error! E2028: erf_ is an undefined reference
Error! E2028: ffgerr_ is an undefined reference
Error! E2028: ffgmsg_ is an undefined reference
Error! E2028: ffpmsg_ is an undefined reference
Error! E2028: setall_ is an undefined reference
Error! E2028: ignlgi_ is an undefined reference
Error! E2028: rint_ is an undefined reference
Error! E2028: ffgcv_ is an undefined reference
Error! E2028: ffpcn_ is an undefined reference
Error! E2028: ffpdat_ is an undefined reference
Error! E2028: ffgstm_ is an undefined reference
Error! E2028: ffphis_ is an undefined reference
Error! E2028: ffukls_ is an undefined reference
Error! E2028: ffuky_ is an undefined reference
Error! E2028: ffgcvd_ is an undefined reference
Error! E2028: ffukyd_ is an undefined reference
Error! E2028: ffpunt_ is an undefined reference
Error! E2028: ffghsp_ is an undefined reference
Error! E2028: ffgrec_ is an undefined reference
Error! E2028: ffgnxk_ is an undefined reference
Error! E2028: ffflus_ is an undefined reference
Error! E2028: ffflnm_ is an undefined reference
Error! E2028: ffgtcl_ is an undefined reference
Error! E2028: ffgcnn_ is an undefined reference
Error! E2028: ffgkyn_ is an undefined reference
Error! E2028: ffgkyj_ is an undefined reference
file grimex.obj(C:\MATLAB6p5\work\grimex\grimex.c): undefined symbol
mxGetNumberOfElements_
file grimex.obj(C:\MATLAB6p5\work\grimex\grimex.c): undefined symbol
mxCalloc_
file grimex.obj(C:\MATLAB6p5\work\grimex\grimex.c): undefined symbol
mxGetString_
file grimex.obj(C:\MATLAB6p5\work\grimex\grimex.c): undefined symbol
mexWarnMsgTxt_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffiopn_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffgipr_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffgics_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffgpv_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffclos_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffwldp_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol fftplt_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffmnhd_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffukyj_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffukye_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol LoadElt_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffopentest_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffgnrw_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffukys_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffrprt_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffrsim_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffppre_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffgtvf_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffghdn_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffthdu_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffgkys_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffcmsg_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffcopy_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffmahd_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffgkye_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffgtam_
file GRILib_DataIO.obj(C:\MATLAB6p5\work\grimex\GRILib_DataIO.c):
undefined symbol ffgtnm_
file GRILib_LensSimu.obj(C:\MATLAB6p5\work\grimex\GRILib_LensSimu.c):
undefined symbol GetValInTable_
file GRILib_LensSimu.obj(C:\MATLAB6p5\work\grimex\GRILib_LensSimu.c):
undefined symbol erf_
file GRILib_LensSimu.obj(C:\MATLAB6p5\work\grimex\GRILib_LensSimu.c):
undefined symbol ffwldp_
file GRI_BuildLens.obj(C:\MATLAB6p5\work\grimex\GRI_BuildLens.c):
undefined symbol LoadElt_
file GRI_BuildLens.obj(C:\MATLAB6p5\work\grimex\GRI_BuildLens.c):
undefined symbol ffukye_
file GRI_BuildLens.obj(C:\MATLAB6p5\work\grimex\GRI_BuildLens.c):
undefined symbol ffclos_
file GRILib_Errors.obj(C:\MATLAB6p5\work\grimex\GRILib_Errors.c):
undefined symbol ffgerr_
file GRILib_Errors.obj(C:\MATLAB6p5\work\grimex\GRILib_Errors.c):
undefined symbol ffgmsg_
file GRILib_Errors.obj(C:\MATLAB6p5\work\grimex\GRILib_Errors.c):
undefined symbol ffpmsg_
file GRILib_Errors.obj(C:\MATLAB6p5\work\grimex\GRILib_Errors.c):
undefined symbol ffcmsg_
file GRILib_Math.obj(C:\MATLAB6p5\work\grimex\GRILib_Math.c):
undefined symbol setall_
file GRILib_randlib.obj(C:\MATLAB6p5\work\grimex\GRILib_randlib.c):
undefined symbol ignlgi_
file GRILib_SpcTools.obj(C:\MATLAB6p5\work\grimex\GRILib_SpcTools.c):
undefined symbol rint_
file GRILib_SpcTools.obj(C:\MATLAB6p5\work\grimex\GRILib_SpcTools.c):
undefined symbol LoadElt_
file GRILib_SpcTools.obj(C:\MATLAB6p5\work\grimex\GRILib_SpcTools.c):
undefined symbol GetValInTable_
file GRILib_SpcTools.obj(C:\MATLAB6p5\work\grimex\GRILib_SpcTools.c):
undefined symbol erf_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffgcv_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffpcn_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffukys_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffpdat_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffgstm_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffphis_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffukls_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffukye_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffgerr_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffcmsg_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffuky_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffghdn_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffthdu_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffmahd_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffcopy_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffgcvd_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffukyd_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffpunt_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffpmsg_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffghsp_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffgrec_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffgnxk_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffflus_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffflnm_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffgkys_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffgnrw_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffgtcl_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffgcnn_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffgkyn_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffgkyj_
file
GRILib_FitsTools.obj(C:\MATLAB6p5\work\grimex\GRILib_FitsTools.c):
undefined symbol ffmnhd_

Which is basicly ALL the functions defined in the .lib files as well
as a few defined in code and included (without giving warnings during
compilation)