From: W. Trevor King Date: Sat, 21 Jan 2012 17:41:22 +0000 (-0500) Subject: No need to use mpicc to compile the plot_image examples. Use gcc instead. X-Git-Url: http://git.tremily.us/?p=parallel_computing.git;a=commitdiff_plain;h=68c095834b5dbd9813f95829777264946af738f9 No need to use mpicc to compile the plot_image examples. Use gcc instead. This requires linking libm explicitly to define `sin` and `cos`. --- diff --git a/src/plot_image/Makefile b/src/plot_image/Makefile index d0e5377..bd5cea9 100644 --- a/src/plot_image/Makefile +++ b/src/plot_image/Makefile @@ -1,7 +1,7 @@ -CC = /usr/bin/mpicc +CC = /usr/bin/gcc CFLAGS = LD = $(CC) -LDFLAGS = +LDFLAGS = -lm RM = /bin/rm EXAMPLES = rectangle sharp sinusoid EXECS = $(EXAMPLES:%=gen_data_%)