Hi Mark: I've spent a couple of hours on this - and have run into a snag. I've got libgc compiling/linking with arm iOS and the Xcode project compiles cljc.c fine. The problem is glib. From what I've read, iOS can not use glib as it must be statically linked into the app - but the LGPL doesn't allow that (at least from what I've read). Currently, there only seems to be about 7 methods that you're using that need it - 6 of which at utf8 related. So, I'm thinking that I'll make a 'prepreamble.m' and use NSString's utf8/unichar support for simulating those methods. But before I spend time on that, any comments or ideas? For g_file_get_contents(), I can probably use [NSString stringWithContentsOfFile:encoding:error].
Here's the current output from Xcode when it gets to linking: Undefined symbols for architecture armv7: "_g_unichar_to_utf8", referenced from: _make_string_from_unichar in cljc.o "_g_utf8_get_char", referenced from: _FN_G__36475 in cljc.o "_g_utf8_skip", referenced from: _FN_G__36582 in cljc.o "_g_utf8_strchr", referenced from: _strchr_offset in cljc.o "_g_utf8_strlen", referenced from: _FN_G__36477 in cljc.o "_g_utf8_offset_to_pointer", referenced from: _FN_G__36475 in cljc.o "_g_strdup", referenced from: _FN_G__36582 in cljc.o "_g_file_get_contents", referenced from: _slurp_file in cljc.o "_g_strndup", referenced from: _FN_G__36582 in cljc.o "_g_strdup_printf", referenced from: _FN_G__36452 in cljc.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) On Tue, Jul 10, 2012 at 9:20 AM, Mark Probst <mark.pro...@gmail.com> wrote: > On Mon, Jul 9, 2012 at 7:03 PM, Adam King <akingco...@gmail.com> wrote: > > However, thanks for your work on this! In the next couple of days, > I'll > > see if I can get it compiling and running under iOS. > > Wonderful! > > If you're interested in working on Objective-C interop, let me know - > I have a few ideas. > > Mark > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en