This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: fed up with div_t
- From: Matthieu dot GIRARDIN at fr dot thalesgroup dot com
- To: andrew dot lunn at ascom dot ch, jifl at eCosCentric dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 18 Jul 2003 09:22:42 +0200
- Subject: RE: [ECOS] fed up with div_t
Hi and thanks for your two responses.
But I might have a problem as you can see :
>>> [root@p00012049 root]# /opt/ecos/ecos-2.0b1/tools/bin/ecosconfig check
>>> ecos.db: error
>>> couldn't read file "/opt/ecos/ecos-2.0b1/tools/bin/ecos.db": no such
file or >>> >>> directory
>>> Invalid package database.
>>> [root@p00012049 root]# ls /opt/ecos/ecos-2.0b1/tools/bin/
>>> configtool ecosconfig platforms.tar ser_filter
>>> [root@p00012049 root]# ls /opt/ecos/ecos-2.0b1/tools/
>>> acsupport bin src
>>> [root@p00012049 root]# ls /opt/ecos/ecos-2.0b1/
>>> acinclude.m4 acsupport ChangeLog configure.in doc
eCos.hhp
>>> Makefile.am packages README.txt aclocal.m4 buildid.txt
configure
>>> COPYING eCos.hhc examples Makefile.in README.host
tools
>>> [root@p00012049 root]# find /opt/ecos/ -name ecos.db
>>> /opt/ecos/ecos-2.0b1/packages/ecos.db
>>> [root@p00012049 root]#
>>> [root@p00012049 root]#
I work since the beginning with the graphic ecostool 2.12.net (eCos 2.0b1):
it was aked me by my training master;
We tought my conf was good because I haven't any problem with it but your
command line show me it wasn't not the case, no ?
I work with gcc and the debugger gdb without any problem
My compilation line is :
gcc -g -I/opt/ecos/ecos-work/final_linux_install/include/
-L/opt/ecos/ecos-work/final_linux_install/lib/ -Ttarget.ld -nostdlib -DECOS
-DECOS_MALLOC -DECOS_TRACE *.c -o appli_test.exe
What's my problem ?
In order to continue on my previous problem : you can see a search :
>>> [root@p00012049 root]# find /opt/ecos/ -name "*.h" -exec grep div_t {}
\; -print
>>> } div_t;
>>> } ldiv_t;
>>> extern div_t
>>> extern ldiv_t
>>> /opt/ecos/ecos-2.0b1/packages/isoinfra/v2_0b1/include/stdlib.h
>>> } div_t;
>>> } ldiv_t;
>>> extern div_t
>>> extern ldiv_t
>>> /opt/ecos/ecos-work/all_install/include/stdlib.h
>>> } div_t;
>>> } ldiv_t;
>>> extern div_t
>>> extern ldiv_t
>>> /opt/ecos/ecos-work/final_linux_install/include/stdlib.h
>>> } div_t;
>>> } ldiv_t;
>>> extern div_t
>>> extern ldiv_t
>>> /opt/ecos/ecos-work/posix_install/include/stdlib.h
>>> [root@p00012049 root]#
But when I try to declare something like : div_t result_div;
In order to use a : result_div = div(...);
It told me : div_t undeclared
For information : my previous mail is just under.
I hope you will have enough informations now.
I hope you will be able to answer my problem.
I'm really fed up with this div_t but I can't do without it... ;-) unless
you have another method to fill a timespec structure from a time in ms...
Best regards ...
Have a nice day !
Matthieu
////////////////////////////////////////////////////////////////////////////
///////
Here is my list if it can help :
- Common error code
- Dynamic memory alloc
- I/O sub-system
- ISO C and POSIX infrastructure
- Infrastructure
- Linux synthetic target
- Linux/i386 synthetic target
- Synthetic FLASH memory
- Synthetic target ethernet driver
- Watchdog driver for synthetic target
- eCos common HAL
- eCos kernel
I want to use div() and div_t so I select " div()/ldiv() implementation
header " in
"ISO C and POSIX infrastructure -> Standard general functions"
I tried without filling the header (so it stay filling with 0 (zero)) :
logically it doesn't work...
I fill the header with <stdlib.h> in a second time beause it's the only
header file with a definition
of div_t in my directory "final_linux_install" ...
But it doesn't work too : it told me " div_t undeclared "
And also " va_list undeclared " (my second problem) ...
Any ideas ?
Thanks a lot for this help !
Best regards.
Matthieu
PS : it was working before because I used, in order to start, a complete
template (linux synthetic target too
but with all packages !); so my codes might be corrects. Now it's time for
me to optimize my template and for this I need you ... please help ... ;-)
////////////////////////////////////////////////////////////////////////////
////////
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss