Autor Tema: problema con mpusbapi.dll al cargarla a MATLAB  (Leído 3814 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado saveuc_siul

  • PIC10
  • *
  • Mensajes: 12
problema con mpusbapi.dll al cargarla a MATLAB
« en: 21 de Abril de 2012, 00:10:52 »
hola de nuevo amigos, nuevamente vengo con un problema en la comunicación PIC-MATLAB por USB, lo que pasa es que cuando quiero cargar la libreria mpusbapi.dll me arroja errores como se muestra a continuación:

Código: [Seleccionar]
> In loadlibrary at 399
Error loading library intermediate output follows.
The actual error is at the end of this output.
*********

Type 'PCHAR' was not found.  Defaulting to type error.

Found on line 93 of input from line 92 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'HANDLE' was not found.  Defaulting to type error.

Found on line 186 of input from line 185 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'PCHAR' was not found.  Defaulting to type error.

Found on line 186 of input from line 185 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'PCHAR' was not found.  Defaulting to type error.

Found on line 186 of input from line 185 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'HANDLE' was not found.  Defaulting to type error.

Found on line 217 of input from line 216 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'PVOID' was not found.  Defaulting to type error.

Found on line 217 of input from line 216 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'PDWORD' was not found.  Defaulting to type error.

Found on line 217 of input from line 216 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'HANDLE' was not found.  Defaulting to type error.

Found on line 249 of input from line 248 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'PVOID' was not found.  Defaulting to type error.

Found on line 249 of input from line 248 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'PDWORD' was not found.  Defaulting to type error.

Found on line 249 of input from line 248 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'HANDLE' was not found.  Defaulting to type error.

Found on line 280 of input from line 279 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'PVOID' was not found.  Defaulting to type error.

Found on line 280 of input from line 279 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'PDWORD' was not found.  Defaulting to type error.

Found on line 280 of input from line 279 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'BOOL' was not found.  Defaulting to type error.

Found on line 290 of input from line 289 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'HANDLE' was not found.  Defaulting to type error.

Found on line 290 of input from line 289 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'HANDLE' was not found.  Defaulting to type error.

Found on line 311 of input from line 310 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'PVOID' was not found.  Defaulting to type error.

Found on line 311 of input from line 310 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'PDWORD' was not found.  Defaulting to type error.

Found on line 311 of input from line 310 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'HANDLE' was not found.  Defaulting to type error.

Found on line 335 of input from line 334 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'UCHAR' was not found.  Defaulting to type error.

Found on line 335 of input from line 334 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'PVOID' was not found.  Defaulting to type error.

Found on line 335 of input from line 334 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'PDWORD' was not found.  Defaulting to type error.

Found on line 335 of input from line 334 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'HANDLE' was not found.  Defaulting to type error.

Found on line 361 of input from line 360 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'UCHAR' was not found.  Defaulting to type error.

Found on line 361 of input from line 360 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'USHORT' was not found.  Defaulting to type error.

Found on line 361 of input from line 360 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'PVOID' was not found.  Defaulting to type error.

Found on line 361 of input from line 360 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'PDWORD' was not found.  Defaulting to type error.

Found on line 361 of input from line 360 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'HANDLE' was not found.  Defaulting to type error.

Found on line 381 of input from line 380 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h

Type 'USHORT' was not found.  Defaulting to type error.

Found on line 381 of input from line 380 of file C:\\Users\\LUIS ANGEL\\Documents\\MATLAB\\_mpusbapi.h
*********
??? Error using ==> loadlibrary at 428
Building mpusbapi_thunk_pcwin64 failed.  Compiler output is:
mpusbapi_thunk_pcwin64.c
C:\Users\LUIS ANGEL\Documents\MATLAB\_mpusbapi.h(81) : error C2059: syntax
error : 'string'
C:\Users\LUIS ANGEL\Documents\MATLAB\_mpusbapi.h(91) : error C2059: syntax
error : 'string'
C:\Users\LUIS ANGEL\Documents\MATLAB\_mpusbapi.h(180) : error C2059: syntax
error : 'string'
C:\Users\LUIS ANGEL\Documents\MATLAB\_mpusbapi.h(211) : error C2059: syntax
error : 'string'
C:\Users\LUIS ANGEL\Documents\MATLAB\_mpusbapi.h(243) : error C2059: syntax
error : 'string'
C:\Users\LUIS ANGEL\Documents\MATLAB\_mpusbapi.h(274) : error C2059: syntax
error : 'string'
C:\Users\LUIS ANGEL\Documents\MATLAB\_mpusbapi.h(288) : error C2059: syntax
error : 'string'
C:\Users\LUIS ANGEL\Documents\MATLAB\_mpusbapi.h(306) : error C2059: syntax
error : 'string'
C:\Users\LUIS ANGEL\Documents\MATLAB\_mpusbapi.h(329) : error C2059: syntax
error : 'string'
C:\Users\LUIS ANGEL\Documents\MATLAB\_mpusbapi.h(354) : error C2059: syntax
error : 'string'
C:\Users\LUIS ANGEL\Documents\MATLAB\_mpusbapi.h(378) : error C2059: syntax
error : 'string'
mpusbapi_thunk_pcwin64.c(59) : error C2065: 'PCHAR' : undeclared identifier
mpusbapi_thunk_pcwin64.c(59) : error C2146: syntax error : missing ';' before
identifier 'p0'
mpusbapi_thunk_pcwin64.c(59) : error C2065: 'p0' : undeclared identifier
mpusbapi_thunk_pcwin64.c(60) : error C2065: 'p0' : undeclared identifier
mpusbapi_thunk_pcwin64.c(60) : error C2146: syntax error : missing ')' before
identifier 'PCHAR'
mpusbapi_thunk_pcwin64.c(60) : error C2065: 'PCHAR' : undeclared identifier
mpusbapi_thunk_pcwin64.c(60) : error C2100: illegal indirection
mpusbapi_thunk_pcwin64.c(60) : error C2059: syntax error : ')'
mpusbapi_thunk_pcwin64.c(60) : error C2297: '*' : illegal, right operand has
type 'const char *'
mpusbapi_thunk_pcwin64.c(61) : error C2065: 'p0' : undeclared identifier
mpusbapi_thunk_pcwin64.c(61) : error C2065: 'p0' : undeclared identifier
mpusbapi_thunk_pcwin64.c(61) : error C2065: 'p0' : undeclared identifier
mpusbapi_thunk_pcwin64.c(62) : error C2146: syntax error : missing ')' before
identifier 'PCHAR'
mpusbapi_thunk_pcwin64.c(62) : error C2146: syntax error : missing ')' before
identifier 'PCHAR'
mpusbapi_thunk_pcwin64.c(62) : error C2065: 'PCHAR' : undeclared identifier
mpusbapi_thunk_pcwin64.c(62) : error C2059: syntax error : ')'
mpusbapi_thunk_pcwin64.c(62) : error C2146: syntax error : missing ';' before
identifier 'fcn'
mpusbapi_thunk_pcwin64.c(62) : warning C4047: 'return' : 'uint32' differs in
levels of indirection from 'uint32 (__cdecl *)()'
mpusbapi_thunk_pcwin64.c(62) : error C2059: syntax error : ')'
mpusbapi_thunk_pcwin64.c(62) : error C2065: 'p0' : undeclared identifier
mpusbapi_thunk_pcwin64.c(66) : error C2061: syntax error : identifier
'HANDLEuint32PCHARPCHARuint32uint32Thunk'
mpusbapi_thunk_pcwin64.c(66) : error C2059: syntax error : ';'
mpusbapi_thunk_pcwin64.c(66) : error C2059: syntax error : 'type'
mpusbapi_thunk_pcwin64.c(89) : error C2065: 'HANDLE' : undeclared identifier
mpusbapi_thunk_pcwin64.c(89) : error C2146: syntax error : missing ';' before
identifier 'p0'
mpusbapi_thunk_pcwin64.c(89) : error C2065: 'p0' : undeclared identifier
mpusbapi_thunk_pcwin64.c(90) : error C2065: 'PVOID' : undeclared identifier
mpusbapi_thunk_pcwin64.c(90) : error C2146: syntax error : missing ';' before
identifier 'p1'
mpusbapi_thunk_pcwin64.c(90) : error C2065: 'p1' : undeclared identifier
mpusbapi_thunk_pcwin64.c(91) : error C2275: 'uint32' : illegal use of this type
as an expression
        mpusbapi_thunk_pcwin64.c(45) : see declaration of 'uint32'
mpusbapi_thunk_pcwin64.c(91) : error C2146: syntax error : missing ';' before
identifier 'p2'
mpusbapi_thunk_pcwin64.c(91) : error C2065: 'p2' : undeclared identifier
mpusbapi_thunk_pcwin64.c(92) : error C2065: 'PDWORD' : undeclared identifier
mpusbapi_thunk_pcwin64.c(92) : error C2146: syntax error : missing ';' before
identifier 'p3'
mpusbapi_thunk_pcwin64.c(92) : error C2065: 'p3' : undeclared identifier
mpusbapi_thunk_pcwin64.c(93) : error C2275: 'uint32' : illegal use of this type
as an expression
        mpusbapi_thunk_pcwin64.c(45) : see declaration of 'uint32'
mpusbapi_thunk_pcwin64.c(93) : error C2146: syntax error : missing ';' before
identifier 'p4'
mpusbapi_thunk_pcwin64.c(93) : error C2065: 'p4' : undeclared identifier
mpusbapi_thunk_pcwin64.c(94) : error C2065: 'p0' : undeclared identifier
mpusbapi_thunk_pcwin64.c(94) : error C2146: syntax error : missing ')' before
identifier 'HANDLE'
mpusbapi_thunk_pcwin64.c(94) : error C2065: 'HANDLE' : undeclared identifier
mpusbapi_thunk_pcwin64.c(94) : error C2100: illegal indirection
mpusbapi_thunk_pcwin64.c(94) : error C2059: syntax error : ')'
mpusbapi_thunk_pcwin64.c(94) : error C2297: '*' : illegal, right operand has
type 'const char *'
mpusbapi_thunk_pcwin64.c(95) : error C2065: 'p0' : undeclared identifier
mpusbapi_thunk_pcwin64.c(95) : error C2065: 'p0' : undeclared identifier
mpusbapi_thunk_pcwin64.c(95) : error C2065: 'p0' : undeclared identifier
mpusbapi_thunk_pcwin64.c(96) : error C2065: 'p1' : undeclared identifier
mpusbapi_thunk_pcwin64.c(96) : error C2146: syntax error : missing ')' before
identifier 'PVOID'
mpusbapi_thunk_pcwin64.c(96) : error C2065: 'PVOID' : undeclared identifier
mpusbapi_thunk_pcwin64.c(96) : error C2100: illegal indirection
mpusbapi_thunk_pcwin64.c(96) : error C2059: syntax error : ')'
mpusbapi_thunk_pcwin64.c(96) : error C2297: '*' : illegal, right operand has
type 'const char *'
mpusbapi_thunk_pcwin64.c(97) : error C2065: 'p1' : undeclared identifier
mpusbapi_thunk_pcwin64.c(97) : error C2065: 'p1' : undeclared identifier
mpusbapi_thunk_pcwin64.c(97) : error C2065: 'p1' : undeclared identifier
mpusbapi_thunk_pcwin64.c(98) : error C2065: 'p2' : undeclared identifier
mpusbapi_thunk_pcwin64.c(99) : error C2065: 'p2' : undeclared identifier
mpusbapi_thunk_pcwin64.c(99) : error C2065: 'p2' : undeclared identifier
mpusbapi_thunk_pcwin64.c(99) : error C2065: 'p2' : undeclared identifier
mpusbapi_thunk_pcwin64.c(100) : error C2065: 'p3' : undeclared identifier
mpusbapi_thunk_pcwin64.c(100) : error C2146: syntax error : missing ')' before
identifier 'PDWORD'
mpusbapi_thunk_pcwin64.c(100) : error C2065: 'PDWORD' : undeclared identifier
mpusbapi_thunk_pcwin64.c(100) : error C2100: illegal indirection
mpusbapi_thunk_pcwin64.c(100) : error C2059: syntax error : ')'
mpusbapi_thunk_pcwin64.c(100) : error C2297: '*' : illegal, right operand has
type 'const char *'
mpusbapi_thunk_pcwin64.c(101) : error C2065: 'p3' : undeclared identifier
mpusbapi_thunk_pcwin64.c(101) : error C2065: 'p3' : undeclared identifier
mpusbapi_thunk_pcwin64.c(101) : error C2065: 'p3' : undeclared identifier
mpusbapi_thunk_pcwin64.c(102) : error C2065: 'p4' : undeclared identifier
mpusbapi_thunk_pcwin64.c(103) : error C2065: 'p4' : undeclared identifier
mpusbapi_thunk_pcwin64.c(103) : error C2065: 'p4' : undeclared identifier
mpusbapi_thunk_pcwin64.c(103) : error C2065: 'p4' : undeclared identifier
mpusbapi_thunk_pcwin64.c(104) : error C2146: syntax error : missing ')' before
identifier 'HANDLE'
mpusbapi_thunk_pcwin64.c(104) : error C2146: syntax error : missing ')' before
identifier 'HANDLE'
mpusbapi_thunk_pcwin64.c(104) : error C2065: 'HANDLE' : undeclared identifier
mpusbapi_thunk_pcwin64.c(104) : error C2065: 'PVOID' : undeclared identifier
mpusbapi_thunk_pcwin64.c(104) : error C2275: 'uint32' : illegal use of this
type as an expression
        mpusbapi_thunk_pcwin64.c(45) : see declaration of 'uint32'
mpusbapi_thunk_pcwin64.c(104) : error C2065: 'PDWORD' : undeclared identifier
mpusbapi_thunk_pcwin64.c(104) : error C2275: 'uint32' : illegal use of this
type as an expression
        mpusbapi_thunk_pcwin64.c(45) : see declaration of 'uint32'
mpusbapi_thunk_pcwin64.c(104) : error C2059: syntax error : ')'
mpusbapi_thunk_pcwin64.c(104) : error C2146: syntax error : missing ';' before
identifier 'fcn'
mpusbapi_thunk_pcwin64.c(104) : warning C4033:
'uint32HANDLEPVOIDuint32PDWORDuint32Thunk' must return a value
mpusbapi_thunk_pcwin64.c(104) : error C2059: syntax error : ')'
mpusbapi_thunk_pcwin64.c(104) : error C2065: 'p0' : undeclared i

ESPERO QUE ME PUEDAN AYUDAR, NO ENTIENDO PORQUE ARROJA ESTE ERROR....

Desconectado saveuc_siul

  • PIC10
  • *
  • Mensajes: 12
Re: problema con mpusbapi.dll al cargarla a MATLAB
« Respuesta #1 en: 21 de Abril de 2012, 21:53:17 »
Hola de nuevo a todos, ya encontre el problema, este se debia a que un virus corrompio los compiladores de C y C++ de mi máquina, por lo tanto matlab no odia cargar la librería, ya está solucionado  :lol:

Desconectado luiskjuarez

  • PIC10
  • *
  • Mensajes: 1
Re: problema con mpusbapi.dll al cargarla a MATLAB
« Respuesta #2 en: 11 de Abril de 2018, 18:22:57 »
Hola de nuevo a todos, ya encontre el problema, este se debia a que un virus corrompio los compiladores de C y C++ de mi máquina, por lo tanto matlab no odia cargar la librería, ya está solucionado  :lol:

Hola como solucionaste el problema, actualizaste los ompiladores o modificaste la ruta de los compiladores o que fue lo que hicite por que tengo el mismo problema :(