you don't invoke linker to create .o files. Here is the format you can use. Satish --- balay@ pj01: ~/test$ ls app. c app-req. c makefile balay@ pj01: ~/test$ cat makefile all: app CLEANFILES = app include ${PETSC_DIR}/lib/petsc/conf/variables include
ZjQcmQRYFpfptBannerStart
On Sat, Jul 13, 2024 at 5:54 AM Ivan Luthfi wrote:
> Hi Mr. Knepley,
> I already copy and edit the makefile shared by PETSC. And here is the
> modification i made to compile my codes:
>
> app : MsFEM_poisson2D_DMDA.o UserParameter.o FormFunction.o MsFEM.o
> PCMsFEM.o
> $(LINK.C) -o $@ $^
Hi Mr. Knepley,
I already copy and edit the makefile shared by PETSC. And here is the
modification i made to compile my codes:
app : MsFEM_poisson2D_DMDA.o UserParameter.o FormFunction.o MsFEM.o
PCMsFEM.o
$(LINK.C) -o $@ $^ $(LDLIBS)
MsFEM_poisson2D_DMDA.o: MsFEM_poisson2D_DMDA.c
On Fri, Jul 12, 2024 at 3:16 AM Ivan Luthfi wrote:
> I try to compile my code, but i get this error. Anyone can help me? Here
> is my terminal: $make bin_MsFEM_poisson2D_DMDA mpicc -o
> bin_MsFEM_poisson2D_DMDA MsFEM_poisson2D_DMDA. o UserParameter. o
> FormFunction. o MsFEM. o PCMsFEM. o /home/i