[ECOS] Device Driver package link error

Andrew Lunn andrew@lunn.ch
Fri Feb 8 14:41:00 GMT 2008


On Fri, Feb 08, 2008 at 02:24:20PM -0000, Steven Clugston wrote:
> >Are you sure that this function is exported (i.e. *not* 
> >declared 'static')? Note that even static functions make it to 
> >the .o file (for use by GDB, etc), they just can't be linked against.
> 
> Yes they're static so that'll be the problem - Thanks.
> 
> All of the other driver code I've looked at also uses statics, so how
> can I separate the code into different source files?

You have to make your symbols global. This is O.K, just avoid name
space pollution. Call your functions

cyg_mpc5xx_tpu_enable, cyg_mpc5xx_tpu_disable etc.

      Andrew 

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list