[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

gstep-base library use boundary="==_Exmh_12596774180"



This is a multipart MIME message.

--==_Exmh_12596774180
Content-Type: text/plain; charset=us-ascii

I've been interested in learning about Objective C, and figured I'd use 
the gstep-base libraries packages with Debian.

My question is fairly simple: what link flags am I supposed to use?

A sample session is MIME-attached.  Hints and suggestions would be really 
appreciated, eh? ;-).

BTW, I'm using libc6-dev here.

--==_Exmh_12596774180
Content-Type: text/plain ; name="newtest.out"; charset=us-ascii
Content-Description: Script file
Content-Disposition: attachment; filename="newtest.out"

graham@A-abe:~% cat mytest.m
#include <Foundation/NSString.h>
#include <stdlib.h>

int main() {
	id str = @"This is a test.\n";

	printf("%s", [str cString]);
	return 0;
}
graham@A-abe:~% gcc -Wall -c mytest.m
graham@A-abe:~% gcc -o mytest mytest.o
mytest.o: In function `main':
mytest.o(.text+0x18): undefined reference to `objc_msg_lookup'
mytest.o: In function `global constructors keyed to main':
mytest.o(.text+0x59): undefined reference to `__objc_exec_class'
mytest.o(.rodata+0x8): undefined reference to `__objc_class_name_NXConstantString'
graham@A-abe:~% gcc -o mytest mytest.o -lobjc
/usr/lib/gcc-lib/i486-linux/2.7.2.2/libobjc.a(thr-posix.o): In function `__objc_init_thread_system':
thr-posix.o(.text+0x3b): undefined reference to `pthread_key_create'
/usr/lib/gcc-lib/i486-linux/2.7.2.2/libobjc.a(thr-posix.o): In function `objc_thread_create':
thr-posix.o(.text+0x95): undefined reference to `pthread_create'
thr-posix.o(.text+0xa5): undefined reference to `pthread_detach'
/usr/lib/gcc-lib/i486-linux/2.7.2.2/libobjc.a(thr-posix.o): In function `objc_thread_yield':
thr-posix.o(.text+0xf4): undefined reference to `pthread_yield'
/usr/lib/gcc-lib/i486-linux/2.7.2.2/libobjc.a(thr-posix.o): In function `objc_thread_set_data':
thr-posix.o(.text+0x14e): undefined reference to `pthread_setspecific'
/usr/lib/gcc-lib/i486-linux/2.7.2.2/libobjc.a(thr-posix.o): In function `objc_thread_get_data':
thr-posix.o(.text+0x17a): undefined reference to `pthread_getspecific'
/usr/lib/gcc-lib/i486-linux/2.7.2.2/libobjc.a(thr-posix.o): In function `objc_mutex_trylock':
thr-posix.o(.text+0x2b5): undefined reference to `pthread_mutex_trylock'
graham@A-abe:~% gcc -o mytest mytest.o -lobjc -lpthreads
/usr/lib/libpthreads.so: undefined reference to `__libc_rewinddir'
/usr/lib/libpthreads.so: undefined reference to `__libc_readdir_r'
/usr/lib/libpthreads.so: undefined reference to `___sig_restore'
/usr/lib/libpthreads.so: undefined reference to `__libc_opendir'
/usr/lib/libpthreads.so: undefined reference to `__libc_closedir'
/usr/lib/libpthreads.so: undefined reference to `__libc_seekdir'
/usr/lib/libpthreads.so: undefined reference to `__libc_readdir'
/usr/lib/libpthreads.so: undefined reference to `__libc_telldir'
/usr/lib/libpthreads.so: undefined reference to `___masksig_restore'

--==_Exmh_12596774180
Content-Type: text/plain; charset=us-ascii

Graham Hughes <ghughes@cs.ucsb.edu>	MIME OK, PGP preferred

from stddisclaim import footer
pgp_fingerprint = "E9 B7 5F A0 F8 88 9E 1E  7C 62 D9 88 E1 03 29 5B"

--==_Exmh_12596774180
Content-Type: text/plain; charset=us-ascii

Graham Hughes <ghughes@cs.ucsb.edu>	MIME OK, PGP preferred

from stddisclaim import footer
pgp_fingerprint = "E9 B7 5F A0 F8 88 9E 1E  7C 62 D9 88 E1 03 29 5B"

--==_Exmh_12596774180--



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: