sakwijining dina Thu, 9 Oct 2003 17:05:09 +0700 (WIT)
"aliflammim" <[EMAIL PROTECTED]> ngucap koyo mangkene:

>#include <iostream.h>
>int main()
>{
>        count << "Hello\n";
>}
>
>
>[EMAIL PROTECTED] kuliah]$ g++ coba.c -o coba
>
>In file included from /usr/include/c++/3.2/backward/iostream.h:31,
>                 from coba.c:1:
>/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning
>This file includes at least one deprecated or antiquated header. Please
>consider using
>one of the 32 headers found in section 17.4.1.2 of the C++ standard.
>Examples include substituting the <X> header for the <X.h> header for C++
>includes, or <sstream> instead of the deprecated header <strstream.h>. To
>disable this warning use -Wno-deprecated.
>coba.c: In function `int main()':
>coba.c:4: `count' undeclared (first use this function)
>coba.c:4: (Each undeclared identifier is reported only once for each function
>   it appears in.)
>
>
>


1. ada salah sintak baris 4: count harusnya cout
2. utk menghilangkan warning waktu compile ditambah parameter -Wno-deprecated
krn anda pake header iostream.h yang saat ini dianggap usang :)

/tmp]$ g++ coba.c -o coba -Wno-deprecated


-eko-

-- 
Berhenti langganan: [EMAIL PROTECTED]
Arsip dan info: http://linux.or.id/milis.php

Kirim email ke