[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libobjcxx
From: |
Kal Conley |
Subject: |
libobjcxx |
Date: |
Thu, 04 Oct 2012 23:49:33 +0200 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 |
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
- libobjcxx,
Kal Conley <=
- Re: libobjcxx, David Chisnall, 2012/10/04
- Re: libobjcxx, Kal Conley, 2012/10/05
- Re: libobjcxx, David Chisnall, 2012/10/05
- Re: libobjcxx, Kal Conley, 2012/10/05
- Re: libobjcxx, David Chisnall, 2012/10/05
- Re: libobjcxx, Richard Frith-Macdonald, 2012/10/05
- Re: libobjcxx, Kal Conley, 2012/10/05
- Re: libobjcxx, David Chisnall, 2012/10/05