Article View: comp.lang.objective-c
Article #392Re: Undefined reference?
From: Niko
Date: Wed, 14 Mar 2001 08:22
Date: Wed, 14 Mar 2001 08:22
29 lines
2438 bytes
2438 bytes
On Tue, 13 Mar 2001 17:04:27 -0600 you wrote: >Libraries (and static libraries in particular) need to be >mentioned on the command line _after_ code that uses them. Thanks Artie for this fast answer, its better now, but I get the same kind of output with different names... and this time I cannot put anything else after! is it a problem of installation of libobj? ------- $gcc -Wno-import printer.m main.m -o test -lobjc /usr/lib/gcc-lib/i486-suse-linux/2.95.2/libobjc.a(thr-posix.o): In function `__objc_init_thread_system': thr-posix.o(.text+0x41): undefined reference to `pthread_key_create' /usr/lib/gcc-lib/i486-suse-linux/2.95.2/libobjc.a(thr-posix.o): In function `__objc_thread_detach': thr-posix.o(.text+0x75): undefined reference to `pthread_create' /usr/lib/gcc-lib/i486-suse-linux/2.95.2/libobjc.a(thr-posix.o): In function `__objc_thread_set_data': thr-posix.o(.text+0x104): undefined reference to `pthread_setspecific' /usr/lib/gcc-lib/i486-suse-linux/2.95.2/libobjc.a(thr-posix.o): In function `__objc_thread_get_data': thr-posix.o(.text+0x120): undefined reference to `pthread_getspecific' /usr/lib/gcc-lib/i486-suse-linux/2.95.2/libobjc.a(thr-posix.o): In function `__objc_mutex_trylock': thr-posix.o(.text+0x1f1): undefined reference to `pthread_mutex_trylock' collect2: ld returned 1 exit status ------
Technical Details
Message-ID:
<pjauat8l2hh0u1ve2elkjfdqsrm1vfpte8@4ax.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp5.proxad.net.POSTED!not-for-mailReferences:
<699tat8g64nd10muf5cih1irqvl25ndcm5@4ax.com> <3AAEA77B.F3F25991@bga.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,30b34a1e2f9e1e50 X-Google-Attributes: gid11318c,public X-Google-Thread: 1111a3,30b34a1e2f9e1e50 X-Google-Attributes: gid1111a3,public X-Google-ArrivalTime: 2001-03-14 00:24:09 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!proxad.net!feeder2.proxad.net!nnrp5.proxad.net.POSTED!not-for-mail From: Niko <use@reply.to> Newsgroups: comp.lang.objective-c,gnu.gcc.help Subject: Re: Undefined reference? Reply-To: nikolee@free.fr Message-ID: <pjauat8l2hh0u1ve2elkjfdqsrm1vfpte8@4ax.com> References: <699tat8g64nd10muf5cih1irqvl25ndcm5@4ax.com> <3AAEA77B.F3F25991@bga.com> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 29 Date: Wed, 14 Mar 2001 08:22:50 GMT NNTP-Posting-Host: 212.129.7.239 X-Complaints-To: abuse@proxad.net X-Trace: nnrp5.proxad.net 984558170 212.129.7.239 (Wed, 14 Mar 2001 09:22:50 CET) NNTP-Posting-Date: Wed, 14 Mar 2001 09:22:50 CET Organization: Guest of ProXad - France