- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I compiled my program in serial mode and there is no any problem. However, I have encontered problems with mpi Linking. The following is my make file
F90 = mpif90
INCLUDEDIRS = -I$(PATHBASE)
OPT_LEVEL = -g -C
FILES = $(OBJ) $(PATHMOD)/*.o $(PATHINTER)/*.o
OPT_LEVEL = -g -C
FILES = $(OBJ) $(PATHMOD)/*.o $(PATHINTER)/*.o
P3_PREPROC= $(F90) -fpp
P3_COMP = $(F90) $(OPT_LEVEL) -L/opt/mpich/intel_ia32/lib -fpp -DUSING_MPI -c -lmpich -lpmpich
P3_LINK = $(F90) $(OPT_LEVEL) -L/opt/mpich/intel_ia32/lib $(INCLUDEDIRS) -o $(PATHBASE)/pi3 $(FILES) -lmpich -lpmpich
P3_COMP = $(F90) $(OPT_LEVEL) -L/opt/mpich/intel_ia32/lib -fpp -DUSING_MPI -c -lmpich -lpmpich
P3_LINK = $(F90) $(OPT_LEVEL) -L/opt/mpich/intel_ia32/lib $(INCLUDEDIRS) -o $(PATHBASE)/pi3 $(FILES) -lmpich -lpmpich
After finishing the compilation process, I have found that there is a problem in Linking with the following errors:
undefined reference to `mpi_send_' (and all functions related to mpi)
I have checked the path and there is no problem. Moreover, I have one subroutine is written in C.
My questions:
1- How can I solve this problem?
2- Can C-subroutine be a probelm?
Waiting your reply
Shhe
Link Copied
0 Replies
![](/skins/images/3CECF0550DB8BF54496C114A1FF06FE9/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page