1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab mex-function

  1. Jul 10, 2007 #1
    Hi everyone!
    I have a lot of trouble with the command mex.
    Here is the instruction i need to use...

    MEX Compile MEX-function.
    MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
    [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]

    MEX compiles and links source files into a shared library called a
    MEX-file, executable from within MATLAB.

    Here is what i type after the prompt...

    >> mex inversie.f

    Here is the damn error...

    Creating library C:\DOCUME~1\PRINCI~1\IMPOST~1\Temp_lib1980.lib and object C:\DOCUME~1\PRINCI~1\IMPOST~1\Temp_lib1980.exp
    Temp_lib1980.exp : error LNK2001: unresolved external symbol _MEXFUNCTION@16
    inversie.mexw32 : fatal error LNK1120: 1 unresolved externals

    C:\PROGRAMMI\MATLAB\R2006A\BIN\MEX.PL: Error: Link of 'inversie.mexw32' failed.

    ??? Error using ==> mex
    Unable to complete successfully

    Does anybody know how to fix it?
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you help with the solution or looking for help too?
Draft saved Draft deleted

Similar Discussions: Matlab mex-function
  1. MATLAB function (Replies: 2)

  2. Matlab function (Replies: 1)

  3. Matlab functions (Replies: 0)

  4. Matlab functions (Replies: 0)

  5. MATLAB function (Replies: 1)