Hi Folks,
I am having linking issues trying to compile an objective-c++ source
file that uses exceptions. In particular, I get the following link error:
(.data.__objc_eh_typeinfo_NSException[__objc_eh_typeinfo_NSException]+0x0):
undefined reference to `vtable for gnustep::libobjc::__objc_class_type_info'
I think I need to link to libobjcxx in addition to libobjc but I am not
sure how I can get GNUstep build system to build it automatically. I am
on debian and I am using the following commands to build GNUstep from
source:
#----------------------------
PREFIX=/opt/local/GNUstep
mkdir -p "${PREFIX}"
export CC=clang
export CXX=clang++
cd gnustep
cd core/make
./configure --enable-debug-by-default --with-layout=gnustep
--prefix="${PREFIX}"
make && sudo -E make install
. "${PREFIX}/System/Library/Makefiles/GNUstep.sh"
cd ../../dev-libs/libobjc2
make debug=no && sudo -E make strip=yes install
cd ../../core/make
./configure --enable-debug-by-default --with-layout=gnustep
--prefix="${PREFIX}"
make && sudo -E make install
. "${PREFIX}/System/Library/Makefiles/GNUstep.sh"
cd ../base
./configure --with-ffi-include=/usr/include/`gcc -dumpmachine`
--prefix="${PREFIX}"
make -j 3 && sudo -E make install
#----------------------------
This automatically builds libobjc.so in addition to libgnustep-base.so
in /opt/local/GNUstep/Local/Library/Libraries/.
I would like to have libobjcxx.so build and installed there too. What is
the easiest way I can achieve this? Or am I way off base?
Thanks!
Kal
_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep