From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4d324698321e4a33,start X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,4d324698321e4a33,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-05-25 13:58:00 PST Path: bga.com!news.sprintlink.net!sundog.tiac.net!usenet.elf.com!rpi!gatech!udel!MathWorks.Com!zombie.ncsc.mil!cs.umd.edu!mimsy.cs.umd.edu!mdtanx From: mdtanx@poptart.cs.umd.edu (Michael D. Tan) Newsgroups: comp.unix.osf.osf1,comp.sys.dec Subject: Compiling with Pthreads Date: 25 May 1994 15:48:15 GMT Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Distribution: world Message-ID: NNTP-Posting-Host: poptart.cs.umd.edu Xref: bga.com comp.unix.osf.osf1:1692 comp.sys.dec:3326 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 . 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