[MSVisualStudio-tickets] [BuildTools - Visual Studio] #9: Coin_C_defines.h
BuildTools - Visual Studio
coin-trac at coin-or.org
Thu Nov 10 10:15:37 EST 2011
#9: Coin_C_defines.h
------------------------+---------------------------------------------------
Reporter: tobias | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone:
Component: component1 | Version: VS2010
Keywords: |
------------------------+---------------------------------------------------
Hi,
I just started using Coin in combination with Matlab so my question might
be rather basic-sorry. The matlab program programmed by a former colleague
uses the CLP Interface to LP/QP solver MEXCLP from Johan Löfberg.
The final line calling the mexclp file
{{{
[x,lambda,status,f,lambdaUL,binc,bind,parlim] =
mexclp(cmatbeg,cmatind,cmatval,c,b,neq,lb,ub,cmatIQ,cmatJQ,cmatvalQ,options,blow);
}}}
works perfectly and calls the mexclp file in my folder- as it should. So
actually the whole program works pretty well.
I tried to debug the mexclp file by using Visual Studio 2010 to understand
whats going ono inside the the mexclp file and to have a look at the
variables in the workspace. So I followed the instructions on the
mathworks website and tried to compile the mex file using
{{{
mex -g mexclp.cpp
}}}
But then I received the following error:
{{{
mexclp.cpp(2) : fatal error C1083: Cannot open include file:
'Coin_C_defines.h': No such file or directory
C:\PROGRA~1\MATLAB\R2011A\BIN\MEX.PL: Error: Compile of 'mexclp.cpp'
failed.
??? Error using ==> mex at 208
Unable to complete successfully.
}}}
So- Coin_C_defines.h cannot be found. I tried to find it somewhere in the
folder but there is nothing.
The only files related to mexclp are:
mexclp.mexw64
mexclp.m
mexclp.mexw64.pdb
mexclp.cpp
So actually Coin_C_defines.h must be somewhere as the program works when I
run it in normal mode.
So my question is how can I debug the mexclp file without getting the
error? Do I have to include something in Visual? I would appreciate any
help.
Programs:
Matlab R2011
Visual Studio 2010
--
Ticket URL: <https://projects.coin-or.org/MSVisualStudio/ticket/9>
BuildTools - Visual Studio <http://projects.coin-or.org/MSVisualStudio>
Information about building COIN-OR projects in Microsoft Visual Studio.
More information about the MSVisualStudio-tickets
mailing list