|
From: Richard C. <r.c...@ed...> - 2013-10-02 11:17:18
|
On 30/09/2013 19:15, DeTracey, Brendan wrote: > Okay. So I see that I should have first compiled with –c the > mexinterface . This works, but compiling yprime95.f90, linking to the > mexinterface obj, fails. > Hi Brendan, Thanks for the report, the answer to your original question is that it *should* work, but that it is untested and I don't think anyone working on gnumex at the moment has experience with fortran. Could you send the output of the 'ver' command in Matlab please. I also assume you got no errors from gnumex when you ran it about .def files or similar? My first guess is that the linking issue will be due to the fortran libraries lflibmx, lflibmex and lflibmat not being created correctly (gnumex must convert these from the libraries supplied by Matlab). This is done using the program nm.exe which is supplied as part of the MinGW-w64 toolchain. The process is to use nm.exe to first create .def files which are text files containing symbols from the library files, these are then used to convert the libraries. If you are interested these libraries are created around lines In the meantime, if you find the cause, and/or a workaround please let us know. Richard -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. |