This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
linking problem.
- From: <jameshq at liverpool dot ac dot uk>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 19 Nov 2002 22:16:35 -0000
- Subject: [ECOS] linking problem.
Hi all:
I wrote a additional file call hal_aux.c in the /hal/ directory and
set it compiled in the *.cdl file.
hal_aux.c
void testfun(void)
{
cyg_uint32 a = 1000;
}
and when I call testfun() in the kapi.cxx file inside
cyg_thread_create() as:
in kapi.cxx file
extern void testfun(void);
cyg_thread_create(xxx)
{
xxx
testfun();
xxx
}
I can build the ecos library without problem, but when I try to
compile the user programe and link with the ecos library it generates
a error says the testfun is not defined. so how can I solve it problem
thanks a lot.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss