Hi Curt,
Thanks for your concern.
What I did finally,
I copied the following statement from the file "stdlib.h":
extern int rand (void);
and pasted it in the file in which rand() is used, then took out this
line
#include "stdlib.h"
and the code worked.
Do you think that I am right?
Aslo, I was wondering that there is no 64 bit data type in GCC
compiler. Any idea?
Thanks very much.
Mouaaz
--- In lpc2000@yahoogroups.com, "Curt Powell" <curt.powell@s...>
wrote:
> Mouaaz,
>
> Are you calling Rand() or rand()?
>
> Curt
>
> -----Original Message-----
> From: mouaaz [mailto:mouaaz@y...]
> Sent: Tuesday, September 07, 2004 8:50 AM
> To: lpc2000@yahoogroups.com
> Subject: [lpc2000] Rand( ) in GCC compiler
>
> Dear all,
>
> I am happy to be a member in this group. That is I am doing my
research in
> the field of Embedded Syatems.
>
> At the moment I am trying to use ARM (LPC2129 v2) to do some
experiments.
> I've had a problem with using the function Rand(). I think that this
> function has not been defined in GCC compiler yet.
> If I am right, could anybody have suggestions for me.
>
> Thanks a lot,
>
> Mouaaz
>
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------
~--> Make
> a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
> Now with Pop-Up Blocker. Get it for free!
> http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dN_tlB/TM
> --------------------------------------------------------------------
~->
Show quoted textHide quoted text
>
>
> Yahoo! Groups Links