Using MailCore in a Cocoa App

I would like to use MailCore in a cocoa app.

I built the static library and I imported using fxgen.

These are the build instructions

For Mac - If you’re building for Mac, you can either link against MailCore 2 as a framework, or as a static library:

Go to Build Phases from your build target, and under ‘Link Binary With Libraries’,

add libMailCore.a and Security.framework.Set

‘Other Linker Flags’ under Build Settings: -luchardet -lctemplate -letpan -lxml2 -lsasl2 -liconv -ltidy -lz -lc++ -stdlib=libc++ -ObjC -lcrypto -lssl
Make sure to use LLVM C++ standard library.

In Build Settings, locate ‘C++ Standard Library’, and select libc++.In Build Phases, add a Target Dependency of static mailcore2 osx.

What should I be doing about the other linker flag instructions and build settings ?

Cheers,
John

Just set these same values for “Linker (LD) Options” setting in the project. you can skip -ObjC, as we already pass that one anyways.

Thanks. Is this available in visual studio ?

I’m not sure if it’s exposed in the UI.If note can set it from Fire, or manually by editing the project file. The tag name is <LinkerOptions>.