How to generate 64bit binaries with gcc on HP.11.00?

Alpman, Johan johan.alpman@cgey.com
Wed Jan 23 08:42:00 GMT 2002


Hi,

I use HP.11.00  with gcc-3.0.2
I receive an error message when I try to build a binary,
using a library, compiled on different machine also HP.11.00

/usr/ccs/bin/ld: /home/jalpman/VIP/project//lib/hpux11.x/libbat.a: Not a
valid library (invalid magic number). Possibly a 64-bit PA archive library
(Mismatched ABI).
collect2: ld returned 1 exit status

I assume this problem is due to the fact that we build 32 bit binaries,
and try to link in a 64-bit library.
How do I do to generate a 64 bit binary with gcc.

When I tried the  -m64 option, I received cc1: Invalid option `64' 

Best Regards
Johan Alpman

> --------------------------------------------------------------------------
> Johan Alpman, Ph.L.
> Cap Gemini Ernst & Young         Phone:  +46 (8)  704 57 14
> Div. Telecom & Media             Fax:    +46 (8)  704 50 17
> Box 825                          Mobile: +46 (70) 946 57 17
> SE-161 24 Bromma                 E-mail: mailto:johan.alpman@capgemini.se
> SWEDEN                           Web:
> http://www.telco.nordic.capgemini.se
> 
> --------------------------------------------------------------------------
> 


This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.



More information about the Gcc-help mailing list