Linking Error: undefined reference to `MPI_Init' on Windows 7
- by fatpipp
I am using OpenMPI library to write a program to run on Windows 7. I compile and build with C Free 4.0, Mingw.
Compiling is Ok but when the compiler links object, errors "undefined reference to ..." occurs.
I have set the environment already: I added OpenMPI lib, include and bin folder into C Free Build Directories. I added them into Windows environment variables too.
But the error still occurs.
Can anyone tell me how to fix it?
Thanks a lot.