Error using DLL file
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!