Help Compiling 64bit Python

Martin v. Löwis martin at v.loewis.de
Sat Sep 20 07:28:50 EDT 2003


John Abel <john.abel at pa.press.net> writes:

> c++   -o python \
>                 Modules/python.o \
>                 libpython2.3.a -lresolv -lsocket -lnsl -lrt -ldl
> -lpthread   -lm
> ld: fatal: file Modules/python.o: wrong ELF class: ELFCLASS64
> ld: fatal: File processing errors. No output written to python
> collect2: ld returned 1 exit status
> make: *** [python] Error 1
> 
> I'd be very grateful for any pointers.

You need to arrange to use the -m options in the linker line as well.

Looking at the generated Makefile will tell you where to best insert
these options.

Regards,
Martin




More information about the Python-list mailing list