The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Mexing fortran file with additional object files
Replies: 2   Last Post: Mar 20, 2011 7:49 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Ralph Schleicher

Posts: 38
Registered: 1/23/10
Re: Mexing fortran file with additional object files
Posted: Mar 20, 2011 6:12 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Sebastian Hölz" <> writes:

>>> mex Module_1.obj Test.f90 -output Test.mexw32
> How do I achive the same, if the precompiled .obj- and .mod-file are
> in a different directory ? I have tried to include the path with the
> "-I" or the "-l" and "-L" switch, but can not find any combination
> which works.

The -I option defines the search path for header files, the '-L' option
defines the search path for library files specified via the '-l' option.
Have you ever tried the command

mex Test.f90 somewhere\in\space\Module_1.obj

Ralph Schleicher <>

Development * Consulting * Training
Mathematical Modeling and Simulation
Software Tools

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.