[gtkada] FW: Problem Linking after Compiling - cannot find -lgtkada

Dmitry A. Kazakov mailbox at dmitry-kazakov.de
Mon Aug 31 16:04:03 CEST 2009


On Mon, 31 Aug 2009 09:47:55 -0400, you wrote:

> From: Golden, Bobby
> Sent: Thursday, August 27, 2009 2:05 PM
> To: 'gtkada at lists.adacore.com'
> Subject: Problem Linking after Compiling - cannot find -lgtkada
> 
> I am having this problem when using the make file on GPS for a simple GTKAda program.
> 
> gnatbind -I- -x h:\gtkada_button\gtkada_button_obj\window1.ali
> gnatlink h:\gtkada_button\gtkada_button_obj\window1.ali -o h:\gtkada_button\gtkada_button_obj\window1.exe
> C:\GNATPRO\5.03a\bin\..\libexec\gcc\pentium-mingw32msv\3.4.4\ld.exe: cannot find -lgtkada
> gnatlink: cannot call C:\GNATPRO\5.03a\bin\gcc.exe
> gnatmake: *** link failed.
> process exited with status 4
> 
> Do you have any suggestions?

-largs -LC:/GtkAda/lib/gtkada/static -lgtkada ?

But you should really tell how you are linking it. E.g. when using
gnatmake, then the command you have used. When using gprbuild (and GNAT
GPS), then the command and/or the gpr proiject file.

Are you trying to link to a relocatable version of GtkAda. Last time I
tried it under Windows, it didn't work. Try the static one.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



More information about the gtkada mailing list