Re: Gtk compiling woes

Worik Stanton <[email protected]>
Newsgroups gmane.org.user-groups.linux.dunedin.general
Message-ID <[email protected]>
On 30/01/13 14:34, Paul Campbell wrote:
> On Wed, 30 Jan 2013 14:24:41 Worik Stanton wrote:
>> Why can gcc not find them?
>
> my guess is that you need a -L on your command line - gcc doesn't use the
> ld.so.conf - that's for the run-time linker

Actually I had the object files in the wrong place.

/usr/bin/gcc -Wall -g ProjectName.o Callbacks.o -o ProjectName 
-Wl,--export-dynamic -pthread -lgtk-3 -lgdk-3 -latk-1.0 -lgio-2.0 
-lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lpango-1.0 -lcairo 
-lgobject-2.0 -lgmodule-2.0 -lrt -lglib-2.0


works fine.  I found the answer on Google as soon as I asked here.  Ask 
and ye shall receive....

It has been a long time no C, I had forgotten that ld.so... is run time.

thanks

W
>
> 	Paul
>
> _______________________________________________
> DunLUG mailing list
> [email protected]
> http://lists.ethernal.org/listinfo/dunlug
> DunLUG Wiki - http://dunlug.kallisti.net.nz/
>


-- 
Overcoming poverty is not a task of charity, it is an act of justice

_______________________________________________
DunLUG mailing list
[email protected]
http://lists.ethernal.org/listinfo/dunlug
DunLUG Wiki - http://dunlug.kallisti.net.nz/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.