32 or 64 bit compile

I am compiling a piece of code that was developed on a 32-bit machine. When I compile I get many warning that look like the following:

/usr/bin/lb: warning i386 architecture of input file /opt/emu/lib/brscora.a (rezbec2.0) is incompatible with i386:x86-64 output

I assume this could easily be corrected by switching a compile flag somewhere. Just wondering if you knew if it was that simple and where might the flag be?

Hi John,

This message means that the library your using was compiled for 32-bits and can not be linked with a 64-bit program. You’ll need to either recompile the library to 64-bits or compile your program in 32-bits. To compile in 32-bits, either set your PATH to the 32-bit compiler bin directory or add the appropriate 32-bit “-tp” switch for your processor (see “pgf90 -help -tp”).

Hope this helps,
Mat