[ECOS] I have a problem about ecos support "opendir" function or not? thank you~
Gary Thomas
gary@mlbassoc.com
Fri Sep 22 09:46:00 GMT 2006
Ãèê÷(tom) wrote:
> Hi,
>
> I was trying to run kvm (cldc 1.1) on ecos. And my host os is red hat9 running on VMware workstation 5. The target I choose when I install ecos is ¡§i386-elf¡¨.
>
> I will test on linux, so I created a configuration ecos.ecc for linux (ecosconfig new linux) and make the kernel. (include and lib)
>
> After making the ecos kernel, I was changing the cc to i386-elf-gcc of preverify tool in cldc 1.1
>
> When making the file, there will have problem that ¡§DIR¡¨ is undeclared. As you can see below, the dirent.h in ecos kernel has extern ¡§DIR¡¨. However, there is no lib for DIR in ecos kernel.(there is no lib which declare the struct of DIR in ecos kernel)
>
> So I want to ask is ecos support opendir operation? I was check on google, but it is hardly to find the same problem with me. I think is the problem happened because my ecos kernel has building in a wrong way. Or actually, ecos does not support the directory operation like opendir or readdir, etc.
> Thank you ~
Your eCos configuration is too limited - the 'default' template doesn't
have this support built in. Try configuring eCos via:
% ecosconfig new linux net
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
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