This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Device Driver package link error


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]