Error using DLL file

7 次查看(过去 30 天)
Sheetansh Kaushik
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;
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 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by