Re: Compiling Gtk (DUIM) on osx?
Bruce Mitchener <[email protected]> Tue, 17 Sep 2013 19:01:54 +0700
| Newsgroups | gmane.comp.lang.dylan.gwydion.devel |
|---|---|
| Message-ID | <CA+esKjMLqz4R2HwzRahTxiYrW1ZLx40SBSPM+Bk5X=RTJRCFCQ@mail.gmail.com> |
Francesco already covered the direct answer. I'd just like to point out that I recently added documentation about this subject to the C-FFI documentation for people who are doing things with C-FFI: http://opendylan.org/documentation/library-reference/c-ffi/#notes-on-linking If there's anything that someone would like clarified or expanded upon, let us know and we'll fix it up. :) Cheers, - Bruce On Tue, Sep 17, 2013 at 6:25 PM, Francesco Ceccon <[email protected]>wrote: > > Quick question – how does the Dylan-compiler know where the gtk > libraries are? Is it assuming /opt/gtk or does it know about pkg-config? > > It uses pkg-config, if you look at, for example, gtk-dylan.lid you can see > that an additional jam file is included with `jam-includes: gtk-dylan.jam`, > this file contains additional flags passed to dylan-compiler (this is just > the gist of it). If you look at it you can > see this: > > LINKLIBS on $(_dll) += `pkg-config --libs gtk+-3.0` ; > CCFLAGS += `pkg-config --cflags gtk+-3.0` ; > > This tells the compiler which flags pass to the C compiler and linker. > > I hope I explained it well enough. > > - Francesco > _______________________________________________ > hackers mailing list > [email protected] > https://lists.opendylan.org/mailman/listinfo/hackers > _______________________________________________ hackers mailing list [email protected] https://lists.opendylan.org/mailman/listinfo/hackers