Presentation is loading. Please wait.

Presentation is loading. Please wait.

Instalasi C standard Risanuri HIdayat. Visual C Toolkit  Download dari  Nama file –VCToolkitSetup.exe.

Similar presentations


Presentation on theme: "Instalasi C standard Risanuri HIdayat. Visual C Toolkit  Download dari  Nama file –VCToolkitSetup.exe."— Presentation transcript:

1 Instalasi C standard Risanuri HIdayat

2 Visual C Toolkit  Download dari  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 main() { /* My first program */ printf("Hello Sayang…. \n"); }  Simpan dalam file dengan nama: hello.c

4 Hello  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>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>  D:\myc\hello>dir  Volume in drive D is DATA  Volume Serial Number is 3FDE-CEE7  Directory of D:\myc\hello  09/08/ :32 AM.  09/08/ :32 AM..  09/08/ :33 AM 90 hello.c  09/08/ :34 AM 646 hello.obj  09/08/ :34 AM 36,864 hello.exe  3 File(s) 37,600 bytes  2 Dir(s) 1,766,662,144 bytes free  D:\myc\hello>hello.exe  Hello Sayang….

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 ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/gcc /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 D:\myc\hello>type hello.c #include 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 Directory of D:\myc\hello 09/08/ :32 AM. 09/08/ :32 AM.. 09/22/ :34 AM 88 HELLO.BAK 09/22/ :36 AM 89 HELLO.C 09/22/ :56 AM 9,465 a.exe 09/22/ :57 AM 646 hello.obj 10/02/ :40 AM 9,465 hello.exe 5 File(s) 19,753 bytes 2 Dir(s) 1,766,170,624 bytes free D:\myc\hello>hello.exe Hello Sayangà. D:\myc\hello>


Download ppt "Instalasi C standard Risanuri HIdayat. Visual C Toolkit  Download dari  Nama file –VCToolkitSetup.exe."

Similar presentations


Ads by Google