Hi,
We am having trouble linking to the mpi library for a code which is not
FLASH. These same
linker lines work for our FLASH code so we are a bit stumped.
Our LD line and error messages are below.
Thanks for any help,
Katie
FC = blrts_xlf -I/bgl/BlueLight/ppcfloor/bglsys/include
CC = blrts_xlc -I/bgl/BlueLight/ppcfloor/bglsys/include
CPP = blrts_xlC -E -I/bgl/BlueLight/ppcfloor/bglsys/include
LD = blrts_xlf -L/bgl/BlueLight/ppcfloor/bglsys/lib -lmpich.rts
-lmsglayer.rts -ldevices.rts -lrts.rts -ldevices.rts
main.o: In function `main':
main.o(.text+0xa4): undefined reference to `mpi_init'
main.o(.text+0xc8): undefined reference to `mpi_comm_rank'
main.o(.text+0xdc): undefined reference to `mpi_comm_size'
main.o(.text+0x1914): undefined reference to `mpi_finalize'
main.o: In function `glblmax':
main.o(.text+0x2c50): undefined reference to `mpi_allreduce'
main.o: In function `glbldmax':
main.o(.text+0x2cd4): undefined reference to `mpi_allreduce'
main.o: In function `glblsum':
main.o(.text+0x2d58): undefined reference to `mpi_allreduce'
main.o: In function `glbldsum':
main.o(.text+0x2e00): undefined reference to `mpi_allreduce'
main.o: In function `layout':
main.o(.text+0x4d40): undefined reference to `mpi_comm_rank'
main.o(.text+0x4d50): undefined reference to `mpi_comm_size'
bdrys.o: In function `xbdrys':
bdrys.o(.text+0xa8): undefined reference to `mpi_irecv'
bdrys.o(.text+0xe4): undefined reference to `mpi_irecv'
bdrys.o(.text+0x130): undefined reference to `mpi_irecv'
bdrys.o(.text+0x174): undefined reference to `mpi_irecv'
etc...