Create DLL file from .c

纵然是瞬间 提交于 2021-02-10 12:01:14

问题


i'm tring to create a .dll file from this .c code (for Labview). http://www.mathworks.com/matlabcentral/fileexchange/26190-vchoosek

But i'm not able to compile it nor with VisualStudio nor with "mcc" because both compilers return this error:

VChooseK.obj : error LNK2019: unresolved external symbol mexErrMsgIdAndTxt referenced in function BadInputTypeError 
VChooseK.obj : error LNK2019: unresolved external symbol mxFree referenced in function ElemK_8Byte 
VChooseK.obj : error LNK2019: unresolved external symbol mxMalloc referenced in function ElemK_8Byte 
VChooseK.obj : error LNK2019: unresolved external symbol mxGetData referenced in function mexFunction 
VChooseK.obj : error LNK2019: unresolved external symbol mxGetPr referenced in function mexFunction 
VChooseK.obj : error LNK2019: unresolved external symbol mxGetElementSize referenced in function mexFunction 
VChooseK.obj : error LNK2019: unresolved external symbol mexWarnMsgIdAndTxt referenced in function mexFunction 
VChooseK.obj : error LNK2019: unresolved external symbol mxCreateNumericMatrix_730 referenced in function mexFunction 
VChooseK.obj : error LNK2019: unresolved external symbol mxGetClassID referenced in function mexFunction 
VChooseK.obj : error LNK2019: unresolved external symbol mxSetN_730 referenced in function mexFunction 
VChooseK.obj : error LNK2019: unresolved external symbol mxSetM_730 referenced in function mexFunction 
VChooseK.obj : error LNK2019: unresolved external symbol mxDuplicateArray referenced in function mexFunction 
VChooseK.obj : error LNK2019: unresolved external symbol mxGetScalar referenced in function mexFunction 
VChooseK.obj : error LNK2019: unresolved external symbol mxGetNumberOfElements referenced in function mexFunction 
VChooseK.obj : error LNK2019: unresolved external symbol mxIsDouble referenced in function mexFunction 
VChooseK.obj : error LNK2019: unresolved external symbol mxIsLogical referenced in function mexFunction 
VChooseK.obj : error LNK2019: unresolved external symbol mxIsChar referenced in function mexFunction 
VChooseK.obj : error LNK2019: unresolved external symbol mxIsNumeric referenced in function mexFunction 

Someone could help me? I've already include the path of "mex.h" in VisualStudio

来源:https://stackoverflow.com/questions/33104624/create-dll-file-from-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!