From coin-trac at coin-or.org Thu Nov 10 10:15:37 2011 From: coin-trac at coin-or.org (BuildTools - Visual Studio) Date: Thu, 10 Nov 2011 15:15:37 -0000 Subject: [MSVisualStudio-tickets] [BuildTools - Visual Studio] #9: Coin_C_defines.h Message-ID: <060.b1315298627ec6e5e633ee23ae67d291@coin-or.org> #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: BuildTools - Visual Studio Information about building COIN-OR projects in Microsoft Visual Studio. From coin-trac at coin-or.org Thu Nov 10 10:20:44 2011 From: coin-trac at coin-or.org (BuildTools - Visual Studio) Date: Thu, 10 Nov 2011 15:20:44 -0000 Subject: [MSVisualStudio-tickets] [BuildTools - Visual Studio] #9: Coin_C_defines.h In-Reply-To: <060.b1315298627ec6e5e633ee23ae67d291@coin-or.org> References: <060.b1315298627ec6e5e633ee23ae67d291@coin-or.org> Message-ID: <075.fb5c547b7e105c8277c7addde1b5deeb@coin-or.org> #9: Coin_C_defines.h -------------------------+-------------------------------------------------- Reporter: tobias | Owner: somebody Type: defect | Status: closed Priority: major | Milestone: Component: component1 | Version: VS2010 Resolution: invalid | Keywords: -------------------------+-------------------------------------------------- Changes (by lou): * status: new => closed * resolution: => invalid Comment: Coin_C_defines.h is in !CoinUtils/src. How you explain this to mex is a question better asked in a Matlab forum. This isn't a Visual Studio bug. -- Ticket URL: BuildTools - Visual Studio Information about building COIN-OR projects in Microsoft Visual Studio.