Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!orion.oac.uci.edu!cedman From: cedman@golem.ps.uci.edu (Carl Edman) Newsgroups: comp.sys.hp Subject: Re: Help me build/get g++ and libraries on a series 300 Message-ID: Date: 13 Nov 90 21:34:47 GMT References: <1990Nov13.114405@dali.gatech.edu> Organization: University of California, Irvine, USA. Lines: 42 Nntp-Posting-Host: lynx.ps.uci.edu In-reply-to: cedman@golem.ps.uci.edu's message of 13 Nov 90 20:07:24 GMT My mailer refuses to reply to you and I assume this interests more people. Mike Gourlay wrote to me in a letter: >> Hello, >> >> Thanks for your reply. >> >> I have since installed the binaries from golem, but when I try to >> compile, I get the message that it can not find libc.a (in the case that >> I'm using gcc) , or that it can not find libm.a (g++). For the g++ program >> I never used the math library, so I don't know why it even bothered trying >> to use it. >> >> I used -L/lib with both g++ and gcc and in both cases, I got the >> message: >> ld: bad magic number in /lib/lib?.a() >> where ? is c for gcc and m for g++. >> >> What am I doing wrong? How do I fix it? I had gcc working before, but >> since I got the binaries from golem, I get this error. Can I get a copy of >> these libraries from you, if I need a different version from my current one? >> Where should they be (since gcc and g++ can't find them)? >> OK, mea culpa. Every single time I post the above message I get about half a dozen replies about someone not finding the libraries. And each time again I forget to mention that you have to use "mkhplib". Gcc and G++ use a different object-format than HP-UX so you need special libraries for GCC and G++. But fortunately my archive comes with the automatic library conversion program "mkhplib". I put the converted libraries in "/usr/local/lib/gnu". After that you shouldn't have any more problems. Carl Edman Theorectical Physicist,N.:A physicist whose | Send mail existence is postulated, to make the numbers | to balance but who is never actually observed | cedman@golem.ps.uci.edu in the laboratory. | edmanc@uciph0.ps.uci.edu