Yahoo Groups archive

Lpc2000

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

Message

RE: [lpc2000] Re: C Code Error Help

2006-04-03 by Robert Adsett

At 07:27 PM 4/2/2006 -0600, Michael Anton wrote:
> > I put static in front of the function call and it will debug now.
> > With my limited knowledge of C I'm not sure why this is the case.  I
> > changed the function call name to ensure that it is an unique
> > without any luck.  Any idea why static works?
>Static limits the scope of the function to the source module it is
>defined in.  I'm not sure why it would fix your problem, other than
>there being another function in a different module or library with
>the same name, but a different prototype.  Alas, with it defined
>as static, you cannot call the function from another module.

It sounds almost like he's got a copy of the function in a header file.

Dewayne,

See if you can reduce the problem to a single file of a few lines.  If the 
problem doesn't become obvious you should have something small enough for 
us to intelligently comment on it.  As it is were making wild stabs in the 
dark.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,   be 
they legal, genetic, or physical.  If you don't believe me, try to chew a 
radio signal. "  -- Kelvin Throop, III
http://www.aeolusdevelopment.com/

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.