bmwcarit/capu — pull request #11 by afrueh (2013-03-13 10:24:34+00:00)
Title: Linking of the DynamicTestLibrary on MacOSX with Makefiles

**After Applying this Patch to the ACME Version of Capu**
https://github.com/bmwcarit/acme/commit/8ac8a56ceae8799ab0a1753859ded15513715550

i get following issue while Linking the DynamicTestLibrary with Makefiles

```javascript
Linking CXX shared library /Users/afrueh/dev/capu/deliverable/Capu/bin/MacOSX_x86_64/Debug/libTestLibrary.so
Undefined symbols for architecture x86_64:
"std::terminate()", referenced from:
capu::Array::Array(capu::Array const&) in DynamicTestLibrary.cpp.obj
capu::String::~String() in DynamicTestLibrary.cpp.obj
capu::String::initData(char const*) in DynamicTestLibrary.cpp.obj
capu::Array::operator=(capu::Array const&) in DynamicTestLibrary.cpp.obj
"vtable for __cxxabiv1::__class_type_info", referenced from:
typeinfo for capu::generic::DynamicLibrary in DynamicTestLibrary.cpp.obj
typeinfo for capu::Array in DynamicTestLibrary.cpp.obj
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"vtable for __cxxabiv1::__vmi_class_type_info", referenced from:
typeinfo for capu::posix::DynamicLibrary in DynamicTestLibrary.cpp.obj
typeinfo for capu::os::DynamicLibrary in DynamicTestLibrary.cpp.obj
typeinfo for capu::os::arch::DynamicLibrary in DynamicTestLibrary.cpp.obj
typeinfo for capu::DynamicLibrary in DynamicTestLibrary.cpp.obj
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"operator delete[](void*)", referenced from:
capu::DefaultArrayDeleter::performDelete(char*) in DynamicTestLibrary.cpp.obj
"operator delete(void*)", referenced from:
capu::DynamicLibrary::~DynamicLibrary() in DynamicTestLibrary.cpp.obj
capu::Array::~Array() in DynamicTestLibrary.cpp.obj
"operator new[](unsigned long)", referenced from:
capu::ScopedArray >::ScopedArray(unsigned long long) in DynamicTestLibrary.cpp.obj
"___gxx_personality_v0", referenced from:
capu::DynamicLibrary::~DynamicLibrary() in DynamicTestLibrary.cpp.obj
capu::Array::Array(capu::Array const&) in DynamicTestLibrary.cpp.obj
capu::Array::~Array() in DynamicTestLibrary.cpp.obj
capu::String::~String() in DynamicTestLibrary.cpp.obj
capu::String::initData(char const*) in DynamicTestLibrary.cpp.obj
capu::Array::operator=(capu::Array const&) in DynamicTestLibrary.cpp.obj
Dwarf Exception Unwind Info (__eh_frame) in DynamicTestLibrary.cpp.obj
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```

The EXPORT_FUNCTION Makro should work properly (according to following http://wiki.herzbube.ch/index.php/Mac_OS_X_Programming#Symbol_visibility)

#### **While using xcodebuild it works, but the install Step doesn't work properly with xcode (copying the include files to /deliverable)**

**System Information**
```javascript
Version:	4.6 (4H127)
Location:	/Applications/Xcode.app
Applications:
Xcode:	4.6 (2066)
Instruments:	4.6 (46000)
SDKs:
OS X:
10,7:	(11E52)
10,8:	(12C37)
iOS:
6,1:	(10B141)
iOS Simulator:
6,1:	(10B141)
```