Technical discussions about the TI C54x DSPs (including the c5401, c5402, c5402a, c5404, c5407, c5409, c5409a, c5410, c5410a, c5416, c5420, c5421, c5441, c549, c5470 and c5471).
|
When I try to use the McBSP code from inside a .cpp file, I get lots of the following errors : [aic11.cpp] "c:/ti/c5400/bios/include/csl_mcbsphal.h", line 79: warning: incompatible redefinition of macro "CSLAPI" (declared at line 36 of "c:/ti/c5400/bios/include/csl_irq.h") "c:/ti/c5400/bios/include/csl_mcbsp.h", line 48: warning: incompatible redefinition of macro "CSLAPI" (declared at line 79 of "c:/ti/c5400/bios/include/csl_mcbsphal.h") "c:/ti/c5400/bios/include/csl_mcbsp.h", line 1054: error: use of a type with no linkage to declare a function "c:/ti/c5400/bios/include/csl_mcbsp.h", line 1056: error: use of a type with no linkage to declare a function .. snip more of the same 35 errors detected in the compilation of "aic11.cpp". If I change the file to a .c file, the messages disappear. Anyone ever seen this and/or know what the fix/workaround is? TIA, Carl Chipman Nomadics, Inc. http://www.nomadics.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.313 / Virus Database: 174 - Release Date: 1/2/2002 |