#包含标题 [英] # include headers
问题描述
extern目录中没有"matlab.h"标头.
如何访问此标头?
tnx
我已经通过我的函数在Matlab 2008中创建了一个dll和共享库.
我想在VS 2005 c ++项目中打开此功能.
问题是与此库一起使用.当我包括头文件和lib文件时.那么lnk2019错误:生成了无法解析的外部符号.
我已经搜索过,发现必须在matlab根目录中添加"matlab.hpp".
但是在我的系统中,这个根本剂量不存在.
这是我的问题的信息.
tnx
Hi,
the "matlab.h" header is not available in extern directory.
how can i access to this header?
tnx
I''ve created a dll and shared library in Matlab 2008 from my function.
I want to open this function in VS 2005 c++ project.
the problem is working with this library. when i include the header and lib files. then the lnk2019 error : unresolved external symbol is generated.
i''ve searched and find that ''matlab.hpp'' in matlab root must be added.
but in my system this root dose''nt exist.
this is the information of my problem.
tnx
推荐答案
有时,您可以在项目中包含实际的标头,或者将它们添加到include路径,这同样适用.我不太确定extern目录是什么,因此如果已经发布的两个网站没有给您任何提示,则您可能必须提供更多信息.
You can sometimes include the actual headers in your project, or add them to the include path, which also works. I''m not quite sure what the extern directory is, so you''ll probably have to provide more information if the two sites already posted don''t give you any tips.
看看这些站点:
Have a look at these sites:
- http://www.mathworks.com/matlabcentral/fileexchange/22689[^]
- http://www.google.com/cse?cx=partner-pub-9308778642308615%3Aw2yqlqncq6k&ie=ISO-8859-1&q=setup+vc%2B%2B+for+matlab[^]
这篇关于#包含标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!