Hi everybody,
I'm trying to write a wrapper unit (called mpichwrap.pas) for the MPICH parallel programming library, with the same aim as for the LAM-MPI. When trying to compile a simple test program, called Prova9, with the command:
gpc -L/fastcl/mpich-1.2.2/lib/ prova9.pas -o prova9
gpc is version:
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs gpc version 20020318, based on 2.95.2 19991024 (release), running on a Linux machine.
I get the following errors:
/tmp/ccAmOjTJ1.o: In function `pascal_main_program': /tmp/ccAmOjTJ1.o(.text+0xc6): undefined reference to `MPI_Init' /tmp/ccAmOjTJ1.o(.text+0xdc): undefined reference to `MPI_Comm_size' /tmp/ccAmOjTJ1.o(.text+0xf2): undefined reference to `MPI_Comm_rank' /tmp/ccAmOjTJ1.o(.text+0x157e): undefined reference to `MPI_Barrier' /tmp/ccAmOjTJ1.o(.text+0x18c9): undefined reference to `MPI_Scatterv' /tmp/ccAmOjTJ1.o(.text+0x1bbe): undefined reference to `MPI_Gatherv' /tmp/ccAmOjTJ1.o(.text+0x2464): undefined reference to `MPI_Finalize' /tmp/ccAmOjTJ1.o: In function `init_pascal_main_program': /tmp/ccAmOjTJ1.o(.text+0x248f): undefined reference to `init_Mpichwrap'
collect2: ld returned 1 exit status
The linking instruction in the wrapper is as follows:
{$L mpich}
referring to the library libmpich.a It seems that the linker cannot link the object code. All the calls are to library functions.
Anyone can help?
Thank you in advance, best regards
Silvio a Beccara