Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mandelbrot.c:93: undefined reference to `ceil' #5

Open
DennisFaucher opened this issue Dec 5, 2024 · 0 comments
Open

mandelbrot.c:93: undefined reference to `ceil' #5

DennisFaucher opened this issue Dec 5, 2024 · 0 comments

Comments

@DennisFaucher
Copy link

dennis@nvidia-k8s:~/Documents/OpenCL/OpenCL-examples/mandelbrot$ make
gcc -std=c99 -Wall -DUNIX -g -DDEBUG -m64 -o mandelbrot mandelbrot.c clbuild.c -lOpenCL
In file included from /usr/include/CL/cl.h:32,
from defs.h:10,
from mandelbrot.c:5:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
| ^~~~~~~
mandelbrot.c: In function ‘main’:
mandelbrot.c:62:4: warning: ‘clCreateCommandQueue’ is deprecated [-Wdeprecated-declarations]
62 | queue = clCreateCommandQueue(context, device, 0, &err);
| ^~~~~
In file included from defs.h:10,
from mandelbrot.c:5:
/usr/include/CL/cl.h:1781:1: note: declared here
1781 | clCreateCommandQueue(cl_context context,
| ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/CL/cl.h:32,
from defs.h:10,
from clbuild.c:1:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
| ^~~~~~~
/usr/bin/ld: /tmp/ccrQKADv.o: in function main': /home/dennis/Documents/OpenCL/OpenCL-examples/mandelbrot/mandelbrot.c:93: undefined reference to ceil'
collect2: error: ld returned 1 exit status
make: *** [Makefile:55: mandelbrot] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant