471,079 Members | 948 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,079 software developers and data experts.

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 2300
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.

Similar topics

6 posts views Thread by JStrummer | last post: by
5 posts views Thread by David Mathog | last post: by
1 post views Thread by Jim Bancroft | last post: by
6 posts views Thread by =?Utf-8?B?WW9naSBXYXRjaGVy?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.