Include & library paths, Linker/Inputs

D

DrOrbit

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

Andy

DrOrbit said:
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#.
 
D

DrOrbit

Does this mean that for C#, "you can't get there from here?" Or are
there similar directives in the C# IDE?
 
A

Andy

DrOrbit said:
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/solutions/data/1-X1PFC.html

HTH,
Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top