From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b65c0f1c260ce700,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-04-29 02:57:08 PST Path: gmd.de!ira.uka.de!scsing.switch.ch!news.univie.ac.at!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!bounce-bounce From: leclerc@cis.ohio-state.edu (Anthony Leclerc) Newsgroups: comp.sys.dec Subject: Error linking X11 in C++ Date: 28 Apr 1993 16:36:56 -0400 Organization: The Ohio State University Dept. of Computer and Info. Science Distribution: usa Message-ID: <1rmpt9INN24l@tennis.cis.ohio-state.edu> NNTP-Posting-Host: tennis.cis.ohio-state.edu I have been using the DEC C++ for ULTRIX on RISC V1.2. What I'm trying to do is compile some X11 routines that compiled fine in "C". The problem seems to with the include files and . The prototyping in X11.h seems to require things declared in Xutil.h and vice-versa. No matter which one I place first, I get a multitude of errors. When I use C++ V2.1 (Stroustrup's), things compile, but I get the following error at the linking stage: ld: /lib/libX11-mit.a(getnodeent.o): jump relocation out-of-range, bad object file p roduced, can't jump from 0x40e9f8 to 0x10000610 (stat) /lib/libc.a(res_init.o): jump relocation out-of-range, bad object file produced, can't jump from 0x428d70 to 0x10000610 (stat) /lib/libc.a(getsvc.o): jump relocation out-of-range, bad object file produced, c an't jump from 0x429114 to 0x10000610 (stat) *** Error code 1 I've tried using the MIT include files instead and linking with "libX11-mit" instead of "libX11". Nothing seems to eliminate the linking problem. Any ideas? Sincerely...Tony Leclerc