How to call functions in c++ library from swift

Hi,

I have one c++ library in Macbook Pro. I am trying to call one of the API of c++ lib in my swift file using Bridge-Header. I have included header & library path and included my c++ library. I have fixed all compilation errors and but facing with below linking errors.

How to link C++ library to swift program language? Please help me.

Code Block
Undefined symbols for architecture x86_64:
 "std::terminate()", referenced from:
   _clang_call_terminate in libNetopsFilterLib.dylib(NetopsControl.o)
 "operator delete(void*)", referenced from:
   _NetopsFilterCommsInit in libNetopsFilterLib.dylib(NetopsFilterInterface.o)
   _NetopsFilterCommsExit in libNetopsFilterLib.dylib(NetopsFilterInterface.o)
   NetopsControl::NetopsControl() in libNetopsFilterLib.dylib(NetopsControl.o)
 "operator new(unsigned long)", referenced from:
   _NetopsFilterCommsInit in libNetopsFilterLib.dylib(NetopsFilterInterface.o)
   NetopsControl::NetopsControl() in libNetopsFilterLib.dylib(NetopsControl.o)
 "_cxa_begin_catch", referenced from:
   _clang_call_terminate in libNetopsFilterLib.dylib(NetopsControl.o)
 "_gxx_personality_v0", referenced from:
   _NetopsFilterCommsInit in libNetopsFilterLib.dylib(NetopsFilterInterface.o)
   Dwarf Exception Unwind Info (eh_frame) in libNetopsFilterLib.dylib(NetopsFilterInterface.o)
   NetopsControl::NetopsControl() in libNetopsFilterLib.dylib(NetopsControl.o)
   NetopsControl::~NetopsControl() in libNetopsFilterLib.dylib(NetopsControl.o)
   Dwarf Exception Unwind Info (eh_frame) in libNetopsFilterLib.dylib(NetopsControl.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This was fixed by including libc++.
How to call functions in c++ library from swift
 
 
Q