comp.lang.ada
 help / color / mirror / Atom feed
From: "Alex R.  Mosteo" <alejandro@mosteo.invalid>
Subject: Re: Linking problem in GPS 2011
Date: Mon, 24 Oct 2011 12:47:23 +0200
Date: 2011-10-24T12:47:23+02:00	[thread overview]
Message-ID: <j83fnq$le4$1@dont-email.me> (raw)
In-Reply-To: 4EA2A18E.8000604@obry.net

Pascal Obry wrote:

> 
> Ludovic,
> 
>> One solution is to
>>
>> export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
> 
> Shouldn't this be LIBRARY_PATH instead of LD_LIBRARY_PATH?

Seconded, I ran into the same problem some months ago when the 2011 version 
came out.

LIBRARY_PATH is needed at linking time. LD_LIBRARY_PATH is needed to find 
shared libraries at execution time.

Finally, if your projects have C/C++ sources too, you'll likely need to fix 
your C_INCLUDE_PATH too, or basic C headers won't be found either.

From my Ada env setup file:

--8<--
# Fix paths for multiarch, broken since 2011 version
export C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/include/i386-linux-gnu
export LIBRARY_PATH=$LIBRARY_PATH:/usr/lib/i386-linux-gnu
--8<--

(And I haven't had to fix LD_LIBRARY_PATH yet... ?)

> 
>> before you call gnatmake from GPS.
> 
> Pascal.
> 




  reply	other threads:[~2011-10-24 10:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-21 19:41 Linking problem in GPS 2011 Hans Petter Ladim
2011-10-21 20:35 ` Ludovic Brenta
2011-10-22 10:52   ` Hans Petter Ladim
2011-10-22 11:05     ` Pascal Obry
2011-10-22 12:57     ` Ludovic Brenta
2011-10-22 13:22       ` Simon Wright
2011-10-22 13:32         ` Pascal Obry
2011-10-22 13:31       ` Pascal Obry
2011-10-22 10:57   ` Pascal Obry
2011-10-24 10:47     ` Alex R.  Mosteo [this message]
2011-10-31 20:50       ` Hans Petter Ladim
replies disabled

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