Re: Recompilation of mex-files fails
- From: "Friedrich " <friedrich.gottelt@xxxxxxxxxxxxxx>
- Date: Fri, 23 Nov 2007 07:14:50 +0000 (UTC)
hello james,
I don't know how this ever worked, since it is notcorrect. Maybe
mexFunction used to be a function in earlier MATLABversions, but it
is a subroutine according to current documentation:
I used 'function' as the fortran code to be called is a
function, not a subroutine, i.e. its return value is the
same as the name of the function.
okay, changing 'function' to 'subroutine' avoids this warning.
But the errors remain - most interesting of them:
/tmp/ccBplqha.s:34: Error: 8-byte relocation cannot be
applied to 4-byte field
/tmp/ccBplqha.s:43: Error: 8-byte relocation cannot be
applied to 4-byte field
/tmp/ccBplqha.s:102: Error: 8-byte relocation cannot be
applied to 4-byte field
/tmp/ccBplqha.s:113: Error: 8-byte relocation cannot be
applied to 4-byte field
At this point I have to mention that my Linux architecture
is x86_64 so maybe that's the point (my old Fedora-version
was X86_64, too)? That is the reason why I've declared the
pointers as integer*8, see the main part of the code:
C The gateway routine
subroutine mexFunction(nlhs, plhs, nrhs, prhs)
integer*8 mxGetM, mxGetN, mxGetPr
integer*8 mxIsNumeric, mxCreateDoubleMatrix
integer*8 plhs(*), prhs(*)
integer*8 PIN_pr, S_pr, H_pr
integer nlhs, nrhs
integer*8 m, n, size, size2
real*8 PIN, S, H
Any Ideas?
.
- Follow-Ups:
- Re: Recompilation of mex-files fails
- From: James Tursa
- Re: Recompilation of mex-files fails
- References:
- Recompilation of mex-files fails
- From: Friedrich
- Re: Recompilation of mex-files fails
- From: James Tursa
- Recompilation of mex-files fails
- Prev by Date: How to get mex files for c++ codes
- Next by Date: Plot Real Time graph Using NI USB 6009
- Previous by thread: Re: Recompilation of mex-files fails
- Next by thread: Re: Recompilation of mex-files fails
- Index(es):
Relevant Pages
|
Loading