[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gobjc-3.3.2 threading problem
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: gobjc-3.3.2 threading problem
- From: Julian Leyh <oenone_(_at_)_oenone_(_dot_)_de>
- Date: Tue, 6 Apr 2004 11:13:22 +0200
- Organization: NERV
- Reply-to: misc_(_at_)_openbsd_(_dot_)_org
hi..
i compiled gcc 3.3.2 from lang/egcs/stable with threading enabled (on
i386, OpenBSD-3.5 current). i need this for a program i'd like to use.
when trying to compile an objective-c file using threads, i get
following errors (file taken from a configure script):
$ cat thread_test.m
#include <objc/thr.h>
#include <objc/Object.h>
int
main()
{
id o = [Object new];
return (objc_thread_detach (@selector(hash), o, nil) == NULL) ? -1 : 0;
}
$ egcc -o thread_test thread_test.m -L/usr/local/lib -lobjc -lpthread
/usr/local/lib/libobjc.so.1.0: undefined reference to `sched_get_priority_max'
/usr/local/lib/libobjc.so.1.0: undefined reference to `sched_get_priority_min'
collect2: ld returned 1 exit status
am i missing something ?
hope you can help.
cu
JRL
--
visit my OpenBSD ports page: http://vgai.de/ports
--
If you don't remember something, it never existed...
If you aren't remembered, you never existed...
Visit your host, monkey.org