0

I'm tring to introduce Boost Clipping c++ library into Swift. I have the following files but the source code is too long to paste here in entirety:

clipper.cpp
clipper.h:

#ifndef clipper_h
#define clipper_h
#define CLIPPER_VERSION "6.2.0"
#include <vector>
#include <set>
...

MyProject-Bridging-Header.h:

#include "AnswerToEverything.h"
#include "clipper.h"

However this results into:

enter image description here

All help greatly appreciated!

Nat Ritmeyer
  • 5,634
  • 8
  • 45
  • 58
user3673836
  • 591
  • 1
  • 9
  • 23
  • Probably this will help : http://stackoverflow.com/questions/24042774/can-i-mix-swift-with-c-like-the-objective-c-mm-files – Midhun MP Dec 27 '14 at 22:54
  • Thanks, the related question covers similar topic but as a noobie, I would need the answer spelled out for me. I have the basic setup working but accessing c++ namespaces etc. seems quite complicated. – user3673836 Dec 28 '14 at 11:04

0 Answers0