Home > Back-end >  VS2017 cannot open source file "tex-mex. H"
VS2017 cannot open source file "tex-mex. H"

Time:03-04

I want to use matlab call c + +, but now in VS have been error code, include there have been unable to open the source file tex-mex. The h,
I baidu online solutions, also add additional include directories, also add additional dependencies




Is a great god can have what I don't consider?

CodePudding user response:

That is to say, I add the include directory does not play a role, very upset,,,

CodePudding user response:

Don't write directly the absolute path (path contains macros or relative path) in a try,

CodePudding user response:

again in ->

CodePudding user response:

Attributes in the SDK version and see with your own version of the SDK is a not to himself,

CodePudding user response:

With & lt;> Try or use absolute paths

CodePudding user response:

You take a look at this:
https://blog.csdn.net/jfwzy109127/article/details/84190137
May help you

CodePudding user response:

Head and library file path is added to the vc + + under the directory



CodePudding user response:

Met the same problem, after exploration, the problem is very simple to solve,
If the use of MATLAB is a 64 - bit version, so the application of c + + is to under the x64 configuration!!!!!!!!!!!!!!!!!!!
If using MATLAB is a 32-bit version of the c + + program should also be under win32 configuration!!!!!!!!!!!!!!!
This is very important!!!!!!!!!!!!!!!!!!!!!!!
  • Related