question on using random in C on FC4 (perhaps slightly OT)
Andy Green
andy at warmcat.com
Wed Nov 16 14:58:22 UTC 2005
Andy Green wrote:
> gcc -c -O3 -Wall -pedantic test.c
>
> works fine here with no errors or warnings.
Gah missed out the -std=c99 ! Same error here then.
$ gcc -c -O3 -std=c99 -Wall -pedantic test.c
test.c: In function ‘main’:
test.c:5: warning: implicit declaration of function ‘random’
test.c:5: warning: format ‘%ld’ expects type ‘long int’, but argument 2
has type ‘int’
-Andy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4492 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20051116/9352c17c/attachment-0001.bin>
More information about the fedora-list
mailing list