* 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
* Re: Build error: cannot find -lc
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
0 siblings, 1 reply; 5+ messages in thread
From: David Sauvage @ 2011-09-08 4:23 UTC (permalink / raw)
On 8 sep, 04:09, Thiago Holanda <thola...@gmail.com> wrote:
> ...
> /usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/ld: cannot find -lc
> ...
1- Close GPS
2- Enter the following line in your working terminal
export LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu:$LD_LIBRARY_PATH
3- Build your application again
You could add the export line to your ~/.bashrc file.
Cheers,
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Build error: cannot find -lc
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
0 siblings, 2 replies; 5+ messages in thread
From: Thiago Holanda @ 2011-09-09 0:46 UTC (permalink / raw)
On Sep 8, 1:23 am, David Sauvage <david.sauv...@adalabs.com> wrote:
> On 8 sep, 04:09, Thiago Holanda <thola...@gmail.com> wrote:> ...
> > /usr/gnat/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/ld: cannot find -lc
> > ...
>
> 1- Close GPS
> 2- Enter the following line in your working terminal
> export LD_LIBRARY_PATH=/usr/lib/i386-linux-gnu:$LD_LIBRARY_PATH
> 3- Build your application again
>
> You could add the export line to your ~/.bashrc file.
>
> Cheers,
Thank you for your help David,
But, i only need to change a little thing to work in Ubuntu:
export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
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