comp.lang.ada
 help / color / mirror / Atom feed
* Build error: cannot find -lc
@ 2011-09-08  0:09 Thiago Holanda
  2011-09-08  4:23 ` David Sauvage
  0 siblings, 1 reply; 5+ messages in thread
From: Thiago Holanda @ 2011-09-08  0:09 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-09-09  5:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-08  0:09 Build error: cannot find -lc Thiago Holanda
2011-09-08  4:23 ` David Sauvage
2011-09-09  0:46   ` Thiago Holanda
2011-09-09  3:44     ` David Sauvage
2011-09-09  5:40     ` Pascal Obry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox