Re: Re: io issues on osx
Steve Dekorte <[email protected]>
| Newsgroups | gmane.comp.lang.io |
|---|---|
| Message-ID | <[email protected]> |
Thanks - fixed that and have updated the ObjcBridge. I'm going to be using Io inside an OSX app as well. On 2011-07-08 Fri, at 03:20 AM, Marco Bambini wrote: > Hello, > thanks a lot for your kind reply... I was able to fix all the issues but I am a bit shocked by the lack of documentation about how to embed io and how to use it from within an application. The language itself is well documented but everything else absolutely not and I am a bit worried about it... I would like to use io for a very cool project I am working on but without documentation seems too time consuming for me. > > Anyway... in order to be able to use libiovmall_static.a inside an app (a Cocoa app in my case) you should fix a couple of headers. > > In Common_inline.h at the end of the file: > #undef IO_DECLARE_INLINES > #undef IOINLINE > > and in taskimpl.h, change the nil define from: > #define nil ((void*)0) > to: > #ifndef nil > #define nil ((void*)0) > #endif > > Best regards. > -- > Marco Bambini > [email protected] > > > > > On Jul 7, 2011, at 9:09 PM, miloatyhu wrote: > >> Hello! >> >> I tried to reply earlier but message disappeared. In case it will show on the list later - sorry for duplicate. >> >> --- In [email protected], Marco Bambini <marco@...> wrote: >>> >>> Using cmake I was able to compile io, simply using: >>> mkdir build && cd build >>> cmake .. >>> make >>> >>> then I tried to use the static library libiovmall_static.a inside my Cocoa app but as soon as I add the header: >>> #import "IoState.h" >>> >>> I receive one linker error and two warning: >>> ld: duplicate symbol _CollectorMarker_clear in /Users/marco/Desktop/Merlin/io/libiovmall_static.a(CollectorMarker.c.o) and /Users/marco/Desktop/Merlin/build/Merlin.build/Debug/Merlin.build/Objects-normal/x86_64/MerlinAppDelegate.o >>> >>> and the warnings are about nil and _POSIX2_UPE redefined. >> >> Perhaps before declaration of mentioned symbol you should put `extern' >> keyword. >> >>> I am an io newbie but not a developer newbie and I really find difficult to move one with all these issues and especially with the complete lack of documentation about how to embed io and how to use it inside a C app. >>> >>> Again, any help is really appreciated. >>> Thanks. >>> -- >>> Marco Bambini >>> marco@... >>> >> >> -- >> Cheers, >> Milo >> >> > > > > ------------------------------------ > > Yahoo! Groups Links > > >