[55] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Re: pthreads & SparcWorks...

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Sat Jul 29 14:41:07 1995

Date: Sat, 29 Jul 1995 14:23:54 -0400
From: Ken Raeburn <raeburn@cygnus.com>
To: dwyszyns@quasar.poly.edu (Daniel Wyszynski)
Cc: pthreads@MIT.EDU
In-Reply-To: dwyszyns@quasar.poly.edu's message of Sat, 29 Jul 1995 10:15:44
	-0400 (EDT) <199507291415.KAA01758@quasar.poly.edu>


   From: dwyszyns@quasar.poly.edu (Daniel Wyszynski)
   Date: Sat, 29 Jul 1995 10:15:44 -0400 (EDT)

   I'm having problems in linking the pthreads package compiled with gcc
   v 2.6.3, with a C++ application that I *must* compile with the SparcWorks
   C++ 4.0.1 compiler.  Even on a main() { } program I get unresolved
   symbols on something like udiv3 and umod3 (or something to that effect).

These are utility routines used by gcc, provided in its support
library libgcc.a, which it automatically links in.  You can use gcc to
link your program, or explicitly specify -L<path> -lgcc on the command
line for the Sun compiler.  Here <path> is the install directory where
libgcc.a resides.

You don't say which OS you're using.  If you're using SunOS 4, you'll
need to link with gcc to get the startup code in the pthreads library
to run properly.  Under Solaris, it might work under the Sun C
compiler; I don't know if they're compatible.  The pthreads library
assumes C++ static constructor support is available, so it would help
if you build everything with the same compiler.

   Pthreads compiled fine on my sun4 machine (a few warnings here and there),
   but for the life of me I cant seem to link with the SparcWorks.

   If anyone has gotten this to work please contact me, since its very
   important that I get this running.

I've never used SparcWorks myself....  Good luck.

Ken

home help back first fref pref prev next nref lref last post