> > 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 > Still doesn't work. I can compile ok but it gives me an error on the bracket under the function call. Does it have anything to do with passing an array? If so, any idea what the correct format is?
Message
Re: C Code Error Help
2006-04-02 by heedaf
Attachments
- No local attachments were found for this message.