Re: io issues on osx
"miloatyhu" <[email protected]>
| Newsgroups | gmane.comp.lang.io |
|---|---|
| Message-ID | <[email protected]> |
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