--- Nu Nix <[EMAIL PROTECTED]> schrieb: > Gue punya file2 berikut ini :
> /*File 1 : helper.c*/
> #include <stdio.h>
> void msg(void)
> {
> printf("Pesan ini disampaikan dari
> Yupiter.\n");
> }
>
> /*File 2 : helper.h*/
> void msg(void)
Ini di sini musti ditutup dengan tanda ";" kalau ini gak ada
dianggap definisi bukan deklarasi.
Eko
> /*File 3 : howdy.c*/
> #include <stdio.h>
> #include "helper.h"
> int main(void)
> {
> printf("Hello, linux programming world\n");
> msg();
> return 0;
> }
>
> Trus saya compile :
> $ gcc howdy.c helper.c -o howdy
> howdy.c: In function `msg':
> howdy.c:4: parse error before `{'
> howdy.c:4: declaration for parameter `main' but no
> such parameter
> howdy.c:6: number of arguments doesn't match prototype
> cc1: prototype declaration
>
> Di mana ya salahnya ?
>
__________________________________________________________________
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Sie brauchen mehr Speicher f�r Ihre E-Mails? - http://premiummail.yahoo.de
--
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3