I am facing the problem to linking with static library.
I am getting the below error message.
exchange_data.c:(.text+0x374): undefined reference to `ompi_mpi_byte'
exchange_data.c:(.text+0x3e2): undefined reference to `ompi_mpi_byte'
exchange_data.c:(.text+0x4d3): undefined reference to `ompi_mpi_int'
exchange_data.c:(.text+0x5b7): undefined reference to `ompi_mpi_byte'
exchange_data.c:(.text+0x673): undefined reference to `ompi_mpi_comm_world'
exchange_data.c:(.text+0x680): undefined reference to `ompi_mpi_byte'
exchange_data.c:(.text+0x6cc): undefined reference to `ompi_mpi_byte'
exchange_data.c:(.text+0x718): undefined reference to `ompi_mpi_byte'
exchange_data.c:(.text+0x843): undefined reference to `ompi_mpi_int'
exchange_data.c:(.text+0xa62): undefined reference to `ompi_mpi_byte'
exchange_data.c:(.text+0xb54): undefined reference to `ompi_mpi_int'
exchange_data.c:(.text+0xb7c): undefined reference to `ompi_mpi_int
Above undefined symbol is matches with following STATIC library.
/app/intel/composer_xe_2013.1.117/mkl/lib/intel64/libmkl_blacs_openmpi_ilp64.a.
So, In the Make file I've add the flags in the following way.
LIBS = -L$(HYPRE_DIR)/lib -lHYPRE -L/app/intel/composer_xe_2013.1.117/mkl/lib/intel64/
LFLAGS = $(LINKOPTS) $(LIBS) -lstdc++ -lmkl_blacs_openmpi_ilp6
After that also while make. I get the same error message.
Could you help me to resolve the problem to link with static library?
Thanks & Regards,
Vijay Kumar TP