Results 1 to 5 of 5

Thread: ใช้ gcc คอมไพล์ C ใน Ubuntu ไม่ได้ครับ T-T

  1. #1
    Junior Member
    Join Date
    May 2007
    Location
    Thailand
    Posts
    1


    Thumbs up

    คือผมกำลังฝึกใช้ Ubuntu ครับ

    ผมเลยใช้ ตามที่อ. ท่านหนึ่งเคยบอกมา ดังนี้

    Open Terminal

    แล้วผมก็พิมพ์

    gcc /path/source.c -o /pathout/out.exe

    โดยโค้ดด้านในเป็นดังนี้

    [code]
    #include <stdio.h>
    int main(void) {
    [SIZE=2]ใครช่างใจร้ายใจดำ ทำกับฉันได้ !!![/SIZE]

  2. #2
    Senior Member
    Join Date
    Jul 2004
    Location
    Thailand
    Posts
    211


    ลอง Update gcc ใหม่มันอาจไม่สมบูรณ์ก็ได้ Ubuntu มันลงแผ่นเดียวก็จริงแต่ต้อง Update ตลอด

    โค้ดแค่นี้ สมควรต้องผ่าน
    พิมพ์แค่นี้ก็ได้

    #include <stdio.h>
    main()
    {
    printf("Test");
    }[/b]
    ไม่ต้องใส่ exe ตอน compile Linux ไม่รู้จักคือ มันไม่มีผล... มันมองไฟล์คนละแบบกัน windows
    ยกเว้นว่าลง winne ไว้




  3. #3


    ลงโปรแกรมครบ หรือยังคับ ?

    พวก build-essential ต่างๆ น่ะครับ
    As the man thinks, he is.

  4. #4


    ใช่เลยครับ ตามที่คุณ Arata บอกเลย

    เพราะผมก็เป็นเหมือนกัน ลองเอาตัวนี้ไป install update ใน ubuntu ดูนะครับ

    ถ้าลงแล้วผมคิดว่าใช้ได้แน่ๆ เพราะผมก็ลองมาแล้ว ไม่ทราบว่าตอบช้าไปหรือเปล่าครับ

    ถ้าช้าไปก็ไว้ให้คนอื่นๆเผื่อจะเป็นอีกมาโหลดแล้วกัน

    http://file.citecclub.org/download.php?id=665026F4

    [SIZE=2]เป็น padawan ซะแล้ว สงสัยจะไม่ได้เป็น full ล่ะ project เยอะเหลือเกิน[/SIZE]

  5. #5
    Junior Member
    Join Date
    May 2007
    Location
    Thailand
    Posts
    1


    ได้แล้วครับ

    นั่งงงอยู่ัตั้งนาน เปิด Google เจอวิธีแก้เลย
    555+

    ให้เรา ติดตั้ง build-essential ลงไปอ่ะคับ


    Code:
    apt-get install build-essential
    อ่ะ จะได้ครับ
    [SIZE=2]ใครช่างใจร้ายใจดำ ทำกับฉันได้ !!![/SIZE]

Similar Threads

  1. Replies: 0
    Last Post: 28-09-2009, 10:57 PM
  2. เข้า Ubuntu ไม่ได้ครับ
    By shinkunsen in forum Linux, Unix , Window เกี่ยวกับ OS ต่างๆ
    Replies: 10
    Last Post: 23-06-2009, 04:17 PM
  3. Ubuntu Linux Toolbox: 1000+ Commands for Ubuntu and Debian
    By lesta in forum Linux, Unix , Window เกี่ยวกับ OS ต่างๆ
    Replies: 1
    Last Post: 28-03-2008, 09:08 AM
  4. Replies: 0
    Last Post: 14-02-2008, 02:03 AM
  5. 8 ขั้นตอนง่าย ๆ ในการเปลี่ยน Ubuntu desktop ให้เป็น Ubuntu Server
    By ntspirit11 in forum Linux, Unix , Window เกี่ยวกับ OS ต่างๆ
    Replies: 0
    Last Post: 30-12-2007, 09:30 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •