From: Florian Meyer on 16 Jul 2010 06:00 I'm building a Model in SimuLink using Real-Time Workshop and the "From Wave Device" Source from DSP Blockset. When I try to build the model, the following errors appear in the Command Window: .... ### Compiling fromwavedevice_ex_win32.c wcc386 -wcd=1180 -zq -ei -zp8 -6r -fpi87 -zl -wx -oneatxh -DEXT_MODE -DMODEL=Tracker2 -DRT -DNUMST=3 -DTID01EQ=0 -DNCSTATES=0 -DMT=1 fromwavedevice_ex_win32.c fromwavedevice_ex_win32.c(10): Error! E1055: Unable to open 'windows.h' fromwavedevice_ex_win32.c(14): Error! E1022: Missing or misspelled data type near 'HMODULE' fromwavedevice_ex_win32.c(14): Warning! W305: Type 'int' assumed in declaration of 'hWAIModule' fromwavedevice_ex_win32.c(14): Error! E1011: Symbol 'NULL' has not been declared fromwavedevice_ex_win32.c(14): Error! E1054: Expression must be constant fromwavedevice_ex_win32.c(16): Warning! W102: Type mismatch (warning) fromwavedevice_ex_win32.c(16): Note! N2003: source conversion type is 'int ' fromwavedevice_ex_win32.c(16): Note! N2004: target conversion type is 'int (*)(void )' fromwavedevice_ex_win32.c(16): Error! E1054: Expression must be constant fromwavedevice_ex_win32.c(17): Warning! W102: Type mismatch (warning) fromwavedevice_ex_win32.c(17): Note! N2003: source conversion type is 'int ' fromwavedevice_ex_win32.c(17): Note! N2004: target conversion type is 'char const *(*)(void )' fromwavedevice_ex_win32.c(17): Error! E1054: Expression must be constant fromwavedevice_ex_win32.c(19): Warning! W102: Type mismatch (warning) fromwavedevice_ex_win32.c(19): Note! N2003: source conversion type is 'int ' fromwavedevice_ex_win32.c(19): Note! N2004: target conversion type is 'void *(*)(double __p1,unsigned short __p2,int __p3,int __p4,int __p5,double __p6,unsigned int __p7,unsigned short __ fromwavedevice_ex_win32.c(19): Error! E1054: Expression must be constant fromwavedevice_ex_win32.c(20): Warning! W102: Type mismatch (warning) fromwavedevice_ex_win32.c(20): Note! N2003: source conversion type is 'int ' fromwavedevice_ex_win32.c(20): Note! N2004: target conversion type is 'void (*)(void const *__p1)' fromwavedevice_ex_win32.c(20): Error! E1054: Expression must be constant fromwavedevice_ex_win32.c(21): Warning! W102: Type mismatch (warning) fromwavedevice_ex_win32.c(21): Note! N2003: source conversion type is 'int ' fromwavedevice_ex_win32.c(21): Note! N2004: target conversion type is 'void (*)(void const *__p1,void const *__p2)' fromwavedevice_ex_win32.c(21): Error! E1054: Expression must be constant fromwavedevice_ex_win32.c(22): Warning! W102: Type mismatch (warning) fromwavedevice_ex_win32.c(22): Note! N2003: source conversion type is 'int ' fromwavedevice_ex_win32.c(22): Note! N2004: target conversion type is 'int (*)(void const *__p1)' fromwavedevice_ex_win32.c(22): Error! E1054: Expression must be constant fromwavedevice_ex_win32.c(74): Warning! W102: Type mismatch (warning) fromwavedevice_ex_win32.c(74): Note! N2003: source conversion type is 'int ' fromwavedevice_ex_win32.c(74): Note! N2004: target conversion type is 'void *' fromwavedevice_ex_win32.c(102): Warning! W102: Type mismatch (warning) fromwavedevice_ex_win32.c(102): Note! N2003: source conversion type is 'int ' fromwavedevice_ex_win32.c(102): Note! N2004: target conversion type is 'void (*)(int __p1)' fromwavedevice_ex_win32.c(26): Warning! W131: No prototype found for function 'LoadLibrary' fromwavedevice_ex_win32.c(34): Warning! W131: No prototype found for function 'GetProcAddress' fromwavedevice_ex_win32.c(52): Warning! W131: No prototype found for function 'FreeLibrary' Error(E42): Last command making (fromwavedevice_ex_win32.obj) returned a bad status Error(E02): Make execution terminated When I build the model with another source everything works just fine. I'm using MatLab Version 7.1.0.246 SP3 and Windows XP. Any ideas? Thank you!
|
Pages: 1 Prev: Problems sharing data between GUI's Next: Help with reading an Excel file |