By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,991 Members | 1,380 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,991 IT Pros & Developers. It's quick & easy.

Include & library paths, Linker/Inputs

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.