I have syntax error when i execute littles programs (drag and drop) in C on Fedora...

Andy Green andy at warmcat.com
Thu Apr 7 12:58:32 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

bastidesamuel at neuf.fr wrote:

| I don't know I have tried a lot of " how to begin in C"programs but
| these errors are blocking me.
| Thank you for a reply sam ...


First change your "prog.c" program...

printf("%d\n",add(3,5));

to

printf("%d\n",3+5);


Then

gcc prog.c -o prog

Then you can run

./prog

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFCVS53jKeDCxMJCTIRAmi5AJ9Y8dLiTt+tHiHuHMF3M75rFDsa3ACeIPV7
2Ze4cyaKjbQmcR+CeLYI95I=
=OMIE
-----END PGP SIGNATURE-----




More information about the fedora-list mailing list