Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

RE: [lpc2000] C Code Error Help

2006-04-02 by Michael Anton

> -----Original Message-----
> From: lpc2000@yahoogroups.com 
> [mailto:lpc2000@yahoogroups.com]On Behalf
> Of heedaf
> Sent: Sunday, April 02, 2006 4:21 PM
> To: lpc2000@yahoogroups.com
> Subject: [lpc2000] C Code Error Help
> 
> 
> I'm getting the following error in CrossWorks
> 
>          "multiple definition of `clear'" 
> 
> when I try and run the following code.  Does anyone have any 
> suggestions?
> Thanks,
> Dewayne
> 
> 
> 
> #define SAMPLE  double      /* define the type used for data 
> samples */
> 
> 
> /*************************************************************
> *********
> ******/
> /* clear: zeroize a FIR delay 
> line                                          */
> /*************************************************************
> *********
> ******/
> void clear(int ntaps, SAMPLE z[])      

<snip>

Make sure you have a function prototype somewhere before
the function definition, and before you call it.  i.e.:

void clear(int, SAMPLE);


I hope this helps,

Mike

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.