Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: Rand( ) in GCC compiler

2004-09-07 by Anton Erasmus

On 7 Sep 2004 at 17:25, mouaaz wrote:

> 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?
> 
[Stuff snipped]

Have you tried long long ? e.g.

long long temp;

temp is then a 64bit signed int.

Regards
   Anton Erasmus-- 
A J Erasmus

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.