Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!aramis.rutgers.edu!porthos.rutgers.edu!marantz From: marantz@porthos.rutgers.edu (Roy Marantz) Newsgroups: gnu.g++ Subject: Re: g++ and sunview (again) Message-ID: Date: 11 Jul 89 16:57:03 GMT References: <2343@pur-phy> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 22 In article <2343@pur-phy> sho@pur-phy (Sho Kuwamoto) writes: > This may be some quirk in SunView, but my troubles with g++ and > sunview seem to come from some fundamental misunderstanding on my part > of g++ linkage. After reducing the program as much as possible, I > came up with this: ... > pf.o: Undefined symbol __DYNAMIC referenced from text ... I believe that the symbol __DYNAMIC is defined by the loader when you use dynamic (instead of static) linking. The g++ says (or implies) that it doesn't have the correct crt0 program to handle dynamic loading, so try telling ld(1) to statically link the program. Roy -- uucp: {backbone}!rutgers!aramis.rutgers.edu!marantz arpa: marantz@aramis.rutgers.edu