Skip to content

Instantly share code, notes, and snippets.

@joshenders
Created October 14, 2015 04:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshenders/1e80d260047687ab6132 to your computer and use it in GitHub Desktop.
Save joshenders/1e80d260047687ab6132 to your computer and use it in GitHub Desktop.
jenders@jenders-mba threadedfractals :) $ make
cc -Ofast -Wall -Wextra -Wshadow -Werror -ansi -pedantic -std=c99 -c -o utils.o utils.c
cc -Ofast -Wall -Wextra -Wshadow -Werror -ansi -pedantic -std=c99 pngify.c utils.o -o pngify -lz
cc -Ofast -Wall -Wextra -Wshadow -Werror -ansi -pedantic -std=c99 resample.c utils.o -o resample
cc -Ofast -Wall -Wextra -Wshadow -Werror -ansi -pedantic -std=c99 render.c utils.o -o render -lm
cc -Ofast -Wall -Wextra -Wshadow -Werror -ansi -pedantic -std=c99 palette.c utils.o -o palette -lm
cc -Ofast -Wall -Wextra -Wshadow -Werror -ansi -pedantic -std=c99 -c -o circularlist.o circularlist.c
cc -Ofast -Wall -Wextra -Wshadow -Werror -ansi -pedantic -std=c99 -c -o loader.o loader.c
cc -Ofast -Wall -Wextra -Wshadow -Werror -ansi -pedantic -std=c99 -c -o mapper.o mapper.c
cc -Ofast -Wall -Wextra -Wshadow -Werror -ansi -pedantic -std=c99 threaded.c circularlist.o loader.o mapper.o utils.o -o threaded -lm -lpthread -ldl
cc -Ofast -Wall -Wextra -Wshadow -Werror -ansi -pedantic -std=c99 threadless.c circularlist.o loader.o mapper.o utils.o -o threadless -lm -ldl
/Library/Developer/CommandLineTools/usr/bin/make -C modules
make julia.so mandelbrot.so crosstrap.so pointtrap.so renormalized.so \
escape_count.so rotate.so translate.so scale.so dragon.so levy.so
cc -Ofast -I.. -Wall -Wextra -Wshadow -Werror -ansi -pedantic -std=c99 -fPIC -shared julia.c ../loader.c ../utils.c -o julia.so
cc -Ofast -I.. -Wall -Wextra -Wshadow -Werror -ansi -pedantic -std=c99 -fPIC -shared mandelbrot.c ../loader.c ../utils.c -o mandelbrot.so -lm
cc -Ofast -I.. -Wall -Wextra -Wshadow -Werror -ansi -pedantic -std=c99 -fPIC -shared crosstrap.c -o crosstrap.so -lm
crosstrap.c:55:8: error: absolute value function 'fabs' given an argument of type 'long double' but has parameter of type 'double' which may cause truncation of value [-Werror,-Wabsolute-value]
v = FABS(trap.sin * CREAL(z) + trap.cos * CIMAG(z));
^
../config.h:28:14: note: expanded from macro 'FABS'
#define FABS fabs
^
crosstrap.c:55:8: note: use function 'fabsl' instead
v = FABS(trap.sin * CREAL(z) + trap.cos * CIMAG(z));
^~~~
fabsl
../config.h:28:14: note: expanded from macro 'FABS'
#define FABS fabs
^
crosstrap.c:56:8: error: absolute value function 'fabs' given an argument of type 'long double' but has parameter of type 'double' which may cause truncation of value [-Werror,-Wabsolute-value]
h = FABS(trap.cos * CREAL(z) + trap.sin * CIMAG(z));
^
../config.h:28:14: note: expanded from macro 'FABS'
#define FABS fabs
^
crosstrap.c:56:8: note: use function 'fabsl' instead
h = FABS(trap.cos * CREAL(z) + trap.sin * CIMAG(z));
^~~~
fabsl
../config.h:28:14: note: expanded from macro 'FABS'
#define FABS fabs
^
2 errors generated.
make[2]: *** [crosstrap.so] Error 1
make[1]: *** [modules] Error 2
make: *** [modules] Error 2
jenders@jenders-mba threadedfractals :( $ git branch
* master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment