From: mdtanx@poptart.cs.umd.edu (Michael D. Tan)
Subject: Compiling with Pthreads
Date: 25 May 1994 15:48:15 GMT [thread overview]
Message-ID: <MDTANX.94May25114815@poptart.cs.umd.edu> (raw)
I have a C program which uses the pthreads package. I'm trying to
compile it on an Alpha running OSF/1 v1.3. I have included
<phtread.h>. When I try to compile I have to say "cc test.c
-lpthreads" in order to succeed. At this point, I have compiled
without errors, but the executable doesn't work (nothing happens- not
even my printf statements at the beginning of the program). When I
run under gdb, I get messages such as
(gdb) run
Starting program: /a/jolt/home/glue4/mdtanx/med/test
13588:/a/jolt/home/glue4/mdtanx/med/test: /sbin/loader: Error: unresolvable symbol in /usr/shlib/libpthreads.so: mach_init
13588:/a/jolt/home/glue4/mdtanx/med/test: /sbin/loader: Error: unresolvable symbol in /usr/shlib/libpthreads.so: task_self_
13588:/a/jolt/home/glue4/mdtanx/med/test: /sbin/loader: Error: unresolvable symbol in /usr/shlib/libpthreads.so: vm_page_size
13588:/a/jolt/home/glue4/mdtanx/med/test: /sbin/loader: Fatal Error: this executable has unresolvable symbols
Program exited with code 01.
You can't do that without a process to debug
(gdb)
Are there some more libraries to which I need to link? I found
nothing in hte man pages, and for some reason, we didn't buy any of
the printed documentation.
Michael Tan
mdtanx@cs.umd.edu
next reply other threads:[~1994-05-25 15:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-05-25 15:48 Michael D. Tan [this message]
1994-05-25 20:16 ` Compiling with Pthreads Simon Patience
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox