Problem Linking after Compiling - cannot find -lgtkada

View: New views
4 Messages — Rating Filter:   Alert me  

Problem Linking after Compiling - cannot find -lgtkada

by Bobby.Golden :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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?

 

 

Bobby Golden   

email: Bobby.Golden@...

 


_______________________________________________
gtkada mailing list
gtkada@...
http://lists.adacore.com/mailman/listinfo/gtkada

Parent Message unknown FW: Problem Linking after Compiling - cannot find -lgtkada

by Bobby.Golden :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

 

 

From: Golden, Bobby
Sent: Thursday, August 27, 2009 2:05 PM
To: 'gtkada@...'
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?

 

 

Bobby Golden   

email: Bobby.Golden@...

 


_______________________________________________
gtkada mailing list
gtkada@...
http://lists.adacore.com/mailman/listinfo/gtkada

Re: FW: Problem Linking after Compiling - cannot find -lgtkada

by Dmitry A. Kazakov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

> From: Golden, Bobby
> Sent: Thursday, August 27, 2009 2:05 PM
> To: 'gtkada@...'
> 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
_______________________________________________
gtkada mailing list
gtkada@...
http://lists.adacore.com/mailman/listinfo/gtkada

Parent Message unknown Re: FW: Problem Linking after Compiling - cannot find -lgtkada

by Dmitry A. Kazakov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 31 Aug 2009 10:08:31 -0400, you wrote:

> I am linking using gprbuild (GNA GPS).  Should I be adding something
> to the project file?

Only with "gtkada.gpr";

But from the error messages it seems that you already did. So I think it is
because of use the relocatable library. Select in GPS static for
"Library_Build", or from the command line, specify -XLIBRARY_TYPE=static
for gprbuild.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
_______________________________________________
gtkada mailing list
gtkada@...
http://lists.adacore.com/mailman/listinfo/gtkada