This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: tests/flash1.c undefined reference to 'flash_errmsg'
- From: Brad Petrus <brad dot petrus at rtc dot bosch dot com>
- To: Brad Petrus <brad dot petrus at rtc dot bosch dot com>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Sun, 13 Feb 2005 13:50:00 -0500
- Subject: Re: [ECOS] tests/flash1.c undefined reference to 'flash_errmsg'
- References: <420F9D34.1090402@rtc.bosch.com>
Brad Petrus wrote:
Hi,
I get the following error when trying to build the tests/flash1 test
case:
- undefined reference to 'flash_errmsg'
The package CYGPKG_IO_FLASH is included as are
CYGPKG_DEVS_FLASH_AMD_AM29XXXXX and the flash-specific package for my
target. In CYGPKG_IO_FLASH, the option CYGSEM_IO_FLASH_LEGACY_API is
enabled. My eCos version is 2.0.33.
After grepping the source/build/install trees, I only find the source
for cyg_flash_errmsg() but not flash_errmsg() although a prototype is
existing for flash_errmsg() in io/flash/v2_0_33/include/flash.h.
Does anyone have any ideas where flash_errmsg() should be?
Thanks,
Brad
To get this to compile, I added the following macro definition to the
top of tests/flash1.c:
#define flash_errmsg(x) cyg_flash_errmsg(x)
However, I still think there is a problem since the function
flash_errmsg() is not implemented anywhere in the sources.
Brad
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss