From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,538223cf6855beeb,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!24g2000yqr.googlegroups.com!not-for-mail From: Thiago Holanda Newsgroups: comp.lang.ada Subject: Build error: cannot find -lc Date: Wed, 7 Sep 2011 17:09:23 -0700 (PDT) Organization: http://groups.google.com Message-ID: <3e304b4f-7319-42d9-96c1-df74aca531c3@24g2000yqr.googlegroups.com> NNTP-Posting-Host: 187.106.187.67 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1315440563 4897 127.0.0.1 (8 Sep 2011 00:09:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 8 Sep 2011 00:09:23 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 24g2000yqr.googlegroups.com; posting-host=187.106.187.67; posting-account=T4XR2goAAADMyHSeavI1xF6pPRqoWBoa User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: ASELCHRU X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.30 (KHTML, like Gecko) Ubuntu/11.04 Chromium/12.0.742.112 Chrome/12.0.742.112 Safari/534.30,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:21844 Date: 2011-09-07T17:09:23-07:00 List-Id: Hello all, I am using the Ubuntu 11.04 and I downloaded and installed the gnat- gpl-2011-x86_64-pc-linux-gnu-bin.tar.gz. My code (uglyform.adb) in GPS is: with Ada.Text_IO; use Ada.Text_IO; procedure UglyForm is begin Put ("Good form "); Put("can aid in "); Put("understanding a program,"); New_Line; Put("and bad form "); Put("can make a program "); Put("unreadable."); New_Line; end UglyForm; I can compile it: gnatmake -ws -c -u -P/home/thiago/Documents/works/Ada/default.gpr - XBUILD=Debug uglyform.adb gcc -c -g -g -gnato -fstack-check -gnatVa -I- -gnatA /home/thiago/ Documents/works/Ada/src/uglyform.adb [2011-09-07 20:59:41] process terminated successfully (elapsed time: 00.15s) But, when I build it, one error happens: gnatmake -d -P/home/thiago/Documents/works/Ada/default.gpr - XBUILD=Debug uglyform.adb gnatlink /home/thiago/Documents/works/Ada/bin/uglyform.ali -g -g -o / home/thiago/Documents/works/Ada/exec/uglyform /usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/ld: cannot find -lc collect2: ld returned 1 exit status gnatlink: error when calling /usr/gnat/bin/gcc gnatmake: *** link failed. [2011-09-07 21:03:36] process exited with status 4 (elapsed time: 00.15s) Thank you for any help. Regards, Thiago