From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charlie Zender To: GSL Discussion List Cc: Charles Yee Subject: Re: how do you build a 64-bit library on IRIX Date: Wed, 19 Dec 2001 13:20:00 -0000 Message-id: <200110082216.f98MG4B14021@dust.ps.uci.edu> X-SW-Source: 2001/msg00579.html It looks to me like you are using the correct flags (-mabi=64) but that somewhere, somehow, you are attempting to link to a 32 bit object file. Many IRIX systems keep the 32-bit and 64-bit versions in different locations so make sure you are pointing to the correct ABI libraries (with -L flag to linker) Here are the flags I use to build 64 bit libraries on IRIX with gcc: C++ := g++ -w CC := gcc GCC_ABI_FLG := -mabi=64 GCC_LDFLAGS_SZ_SPC := ${GCC_ABI_FLG} -mips4 -L/usr/local/lib/mabi=64 LDFLAGS += $(GCC_LDFLAGS_SZ_SPC) CFLAGS += ${GCC_ABI_FLG} -O2 -Wall C++FLAGS := ${CFLAGS} Good luck, Charlie -- Charlie Zender zender@uci.edu (949) 824-2987/FAX-3256, Department of Earth System Science, University of California, Irvine CA 92697-3100