468,296 Members | 1,269 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,296 developers. It's quick & easy.

Include & library paths, Linker/Inputs

I'm trying to configure Visual Studio 2005 (C#) to produce a MEX DLL
that will interface with MatLab. I found an online source that
describes some files that I need to attach to the DLL. The source
says:

"...Next, you'll be setting properties of the project (right click on
the project name in the
solution explorer and select "Properties")

2. Add <MATLAB>\extern\include to the include directory path

3. Add <MATLAB>\lib\win32 to the additional library directory path

4. Add libmex.lib libmx.lib libut.lib to the addtional dependencies
(under Linker/Inputs)"

I think that they're referring to an earlier version of VS because I
just can't find "include directory path," "library directory path" or
"Linker/Inputs."

If you can point me in the right direction, I'd appreciate it.

Mar 28 '06 #1
3 2234
DrOrbit wrote:
I'm trying to configure Visual Studio 2005 (C#) to produce a MEX DLL
that will interface with MatLab. I found an online source that
describes some files that I need to attach to the DLL. The source
says:

"...Next, you'll be setting properties of the project (right click on
the project name in the
solution explorer and select "Properties")

2. Add <MATLAB>\extern\include to the include directory path

3. Add <MATLAB>\lib\win32 to the additional library directory path

4. Add libmex.lib libmx.lib libut.lib to the addtional dependencies
(under Linker/Inputs)"

I think that they're referring to an earlier version of VS because I
just can't find "include directory path," "library directory path" or
"Linker/Inputs."

If you can point me in the right direction, I'd appreciate it.


These settings are very common in in VS for C++, but not for C#.

--
To email me directly, please remove the *NO*SPAM* parts below:
*NO*SPAM*xmen40@*NO*SPAM*gmx.net
Mar 28 '06 #2
Does this mean that for C#, "you can't get there from here?" Or are
there similar directives in the C# IDE?

Mar 28 '06 #3
DrOrbit wrote:
Does this mean that for C#, "you can't get there from here?" Or are
there similar directives in the C# IDE?


I don't know, as I have no experience with MatLab. If a MEX DLL is
Plugin for MatLab, which the name suggests, I don't think so. Maybe
matLab has a .NET extension mechanism?

If you want to use functionality from the c++ libraries you have
mentioned, you can do that with C# using interop.

Maybe this link is an option:
http://www.mathworks.com/support/sol...a/1-X1PFC.html

HTH,
Andy

--
To email me directly, please remove the *NO*SPAM* parts below:
*NO*SPAM*xmen40@*NO*SPAM*gmx.net
Mar 28 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.