Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

linker problem with matlab

Intel_C_Intel
Employee
376 Views
hi,
i am a research assistant at the university of florida. i have compaq visual fortran 6.5 installed in winnt paltform along with matlab 5.3. i set up the compiler with mex -setup. when i tried compiling a simple fortran file, i got an error message like the one i have attached in the additional info.

any help would be appreciated
Thanks in advance.
Ganesan.

Additional Information:

>>mex times2.for

Creating library _lib1293l.lib and object _lib1293l.exp
_lib1293l.exp : error LNK2001: unresolved external symbol _MEXFUNCTION@16
times2.dll : fatal error LNK1120: 1 unresolved externals

C:MATLABR11BINMEX.BAT: Link of 'times2.dll' failed.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
376 Views
Not being too familiar with MATLAB, it looks to me that MATLAB is trying to call a function MEXFUNCTION that you are supposed to write, and that function must have a particular set of arguments. Check the MATLAB documentation for details as to what this is supposed to look like.

Steve
0 Kudos
Reply