Talk:Mandelbrot set: Difference between revisions

(→‎making C version work: I haven't used windows for years...)
Line 32:
It's been years since I have mucked about with makefiles and linker options, and knowing what is supposed to be happening here might help. --[[User:Rdm|Rdm]] 12:59, 28 July 2011 (UTC)
: Does the linker fail to find libglut or does it fail to find function that libglut calls? On my system the program needs libGL.so, libGLU.so, libglut.so and libm.a, all of which should be portable. Can you ldd those? --[[User:Ledrug|Ledrug]] 21:11, 28 July 2011 (UTC)
 
:: Try putting your flags in the correct order. The -l flags must be after the .c file, and libraries must go in order with -lglut before its dependencies. (ELF shared libraries might already know about their dependencies, but other kinds of libraries might not.) Try this:
 
:: <lang bash>make mandelbrot LDLIBS='-L/usr/lib/w32api -lglut -lGLU32 -lopengl32 -lgl -lm'</lang>
 
:: If you have missing entry points, please post their names; then we might know which library is missing. --[[User:Kernigh|Kernigh]] 21:58, 28 July 2011 (UTC)
Anonymous user