Presentation is loading. Please wait.

Presentation is loading. Please wait.

Instalasi C standard Risanuri HIdayat.

Similar presentations

Presentation on theme: "Instalasi C standard Risanuri HIdayat."— Presentation transcript:

1 Instalasi C standard Risanuri HIdayat

2 Visual C Toolkit Download dari Nama file
Nama file VCToolkitSetup.exe Double click file tersebut untuk meng-install, hasil instalasi terletak di C:\Program Files\Microsoft Visual C++ Toolkit 2003 Set Path, untuk Win XP click kanan my computer ->properties, click Advanced, dan environment variables. Tambahkan/Isikan pada variabel Path C:\Program Files\Microsoft Visual C++ Toolkit 2003\bin;

3 Hello Tuliskan program berikut, text editor terserah anda (NotePad, WordPad, Jext, dsb) #include <stdio.h> main() { /* My first program */ printf("Hello Sayang…. \n"); } Simpan dalam file dengan nama: hello.c

4 Run/eksekusi hello.exe
Compile hello.c dengan perintah berikut >cl hello.c -o hello.exe Run/eksekusi hello.exe >hello.exe Hello Sayang….

5 Hello D:\myc\hello>dir D:\myc\hello>cl hello.c -o hello.exe
Volume in drive D is DATA Volume Serial Number is 3FDE-CEE7 Directory of D:\myc\hello 09/08/ :32 AM <DIR> 09/08/ :32 AM <DIR> 09/08/ :33 AM hello.c 09/08/ :34 AM hello.obj 09/08/ :34 AM ,864 hello.exe 3 File(s) ,600 bytes 2 Dir(s) 1,766,662,144 bytes free D:\myc\hello>hello.exe Hello Sayang…. D:\myc\hello>cl hello.c -o hello.exe Microsoft (R) 32-bit C/C++ Optimizing Compiler Version for 80x86 Copyright (C) Microsoft Corporation All rights reserved. hello.c Microsoft (R) Incremental Linker Version Copyright (C) Microsoft Corporation. All rights reserved. /out:hello.exe hello.obj D:\myc\hello>

6 gcc MANDATORY: Must choose one of the following:
a. gcc crtdll.exe C/C++/F77/ObjC compilers (CRTDLL) b. gcc msvcrt.exe C/C++/F77/ObjC compilers (MSVCRT) Download dari /gcc crtdll.exe All Win9x/NT systems come with CRTDLL, and all Win9x/NT systems except perhaps the first edition of Win9x systems come with MSVCRT as well. Until now, CRTDLL runtime version was the one commonly known as Mingw32, and the MSCVCRT was provided as an add-on.

7 Documentation OPTIONAL: Documentation packages are optional, but I highly recommend it. mingw32-docs-html.exe Docs in HTML format. Contains GCC , Binutils 2.9.4, GDB 4.18 and Make 3.77 docs.

8 Installation Just double click the file
Decide where to install it. By default, it usually install in "C:\GCC ", but you can install *anywhere* you want, including on a ZIP/JAZ drive.

9 Setting up environment variables
Setting path berada dalam file MINGW32.BAT. C:\> PATH=C:\GCC \BIN;%PATH% Jalankan file ini, atau copykan isi file ini ke dalam autoexec.bat Di Windows XP

10 Hello Directory of D:\myc\hello 09/08/2004 09:32 AM <DIR> .
09/22/ :34 AM HELLO.BAK 09/22/ :36 AM HELLO.C 09/22/ :56 AM ,465 a.exe 09/22/ :57 AM hello.obj 10/02/ :40 AM ,465 hello.exe 5 File(s) ,753 bytes 2 Dir(s) 1,766,170,624 bytes free D:\myc\hello>hello.exe Hello Sayangà. D:\myc\hello> D:\myc\hello>type hello.c #include <stdio.h> main() { /* My first program */ printf("Hello Sayangà. \n"); } D:\myc\hello>gcc hello.c -o hello.exe D:\myc\hello>dir Volume in drive D is DATA Volume Serial Number is 3FDE-CEE7

Download ppt "Instalasi C standard Risanuri HIdayat."

Similar presentations

Ads by Google