From: Yi on 29 Apr 2010 12:22 Hi: I tried to compile my fortran code with matlab engine application using Microsoft Visual Studio 2005. (my fortran code can be compiled and execute correctly in matlab environment.) I followed the link: http://www.mathworks.com/support/solutions/en/data/1-78077S/index.html?product=ML&solution=1-78077S this works for the C++ code on my computer, but when I tried to follow this on my fortran code. I did as below: 1. I added C:\Program Files\MATLAB\R2009a\extern\include to the additional include directories under (property-fortran-general). 2. I added C:\Program Files\MATLAB\R2009a\extern\lib\win32\microsoft to the additional include directories under property->linker-> general. 3. I added "libmx.lib libmat.lib libeng.lib " in linker->input. the compiler still give me the warning: Warning: Bad # preprocessor line D:\ResearchShare\SolveMatrixExample\SimpleTriangle\SimpleTriangle\matengine.f 1 and reported errors where I used the matlab engine functions. Can you tell me why this does not work in my fortran application? Thank you so much!! Yi
|
Pages: 1 Prev: probability based on trials of 2 variables Next: matlabpool open failure |