Re: building a library using gtk+

2006-05-17 Thread Rick Jones
So I try to build a library. libglpp.a: $(OBJ3) GLPPmain.o #g++ -shared $(OPT) $(DEBUG) $(OBJ3) GLPPmain.o -o glpp.so `pkg-config --libs gtk+-2.0` $(LIBS) -lftgl ar r libglpp.a $(OBJ3) GLPPmain.o The first line did not work, and I'm hoping someone can give me the right set of command

Re: building a library using gtk+

2006-05-17 Thread John Cupitt
On 5/16/06, Dov Kruger [EMAIL PROTECTED] wrote: If I run pkg-config and capture the output, this is what it puts out: -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 So I want to

Re: building a library using gtk+

2006-05-17 Thread Rick Jones
I handle this by making my own .pc file for my library. It's fairly easy to get your configure script to generate one and install it correctly, but I could post an example if you like. One you have a mylibrary.pc installed, your users can compile and link with: g++ main.cpp `pkg-config

Re: building a library using gtk+

2006-05-17 Thread John Cupitt
On 5/17/06, Rick Jones [EMAIL PROTECTED] wrote: I handle this by making my own .pc file for my library. It's fairly easy to get your configure script to generate one and install it correctly, but I could post an example if you like. One you have a mylibrary.pc installed, your users can

Re: building a library using gtk+

2006-05-17 Thread Rick Jones
John Cupitt wrote: On 5/17/06, Rick Jones [EMAIL PROTECTED] wrote: I handle this by making my own .pc file for my library. It's fairly easy to get your configure script to generate one and install it correctly, but I could post an example if you like. One you have a mylibrary.pc

Re: building a library using gtk+

2006-05-17 Thread Dov Kruger
Since originally posting this question, I've used the linker to try to create a dll. ar just assembles a number of .o files, I don't believe it resolves any symbols which is useless to me. So, I did ld -dll -o libglpp $(OBJ3) GLPPmain.o -L/opt/lib -lftgl -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0

Re: building a library using gtk+

2006-05-17 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/17/2006 11:06 AM, Dov Kruger wrote: Since originally posting this question, I've used the linker to try to create a dll. ar just assembles a number of .o files, I don't believe it resolves any symbols which is useless to me. So, I did ld