Error using DLL file
7 ビュー (過去 30 日間)
古いコメントを表示
Good day to all,
I am trying to Import a DLL file using MATLAB Version: 8.1.0.604 (R2013a). After running the M file i get the following Errors:
Error using loadlibrary (line 419)
Building EbusAccess_thunk_pcwin64 failed. Compiler output is:
cl -I"C:\Program Files\MATLAB\R2013a\extern\include" /W3 /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE
/D_SECURE_SCL=0 /nologo -I"C:\SKaushik\01_Aufgabe_SK\01_Ebus\eBusAccess"
-I"C:\SKaushik\01_Aufgabe_SK\01_Ebus\eBusAccess" "EbusAccess_thunk_pcwin64.c" -LD
-Fe"EbusAccess_thunk_pcwin64.dll"
EbusAccess_thunk_pcwin64.c
C:\SKaushik\01_Aufgabe_SK\01_Ebus\eBusAccess\EbusAccess.h(29) : error C2143: syntax error : missing ')' before
'&'
C:\SKaushik\01_Aufgabe_SK\01_Ebus\eBusAccess\EbusAccess.h(29) : error C2143: syntax error : missing '{' before
'&'
C:\SKaushik\01_Aufgabe_SK\01_Ebus\eBusAccess\EbusAccess.h(29) : error C2059: syntax error : '&'
C:\SKaushik\01_Aufgabe_SK\01_Ebus\eBusAccess\EbusAccess.h(29) : error C2059: syntax error : ')'
Error in onStart_eBUS (line 3)
loadlibrary EbusAccess.dll EbusAccess.h;
I have look at the following : http://de.mathworks.com/matlabcentral/answers/47641-mex-compilation-error-in-windows .
As my error is with the Header file, i cant simply rename the file and continue. Following is my Compiler configuration:
CompilerConfiguration with properties:
Name: 'Microsoft SDK'
Manufacturer: 'Microsoft'
Language: 'C++'
Version: '7.1'
Location: 'C:\Program Files (x86)\Microsoft Visual Studio 10.0'
Details: [1x1 mex.CompilerConfigurationDetails]
LinkerName: 'Microsoft SDK'
LinkerVersion: '7.1'
Please guide me in the direction so i can solve the error.
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で MATLAB Compiler についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!