Talk:Mandelbrot set: Difference between revisions

→‎java: new section
(→‎making C version work: I haven't used windows for years...)
(→‎java: new section)
 
(8 intermediate revisions by 5 users not shown)
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. If anyone has no err.h, try deleting the <code>#include <err.h></code> line; I deleted it from this wiki page. --[[User:Kernigh|Kernigh]] 22:08, 28 July 2011 (UTC)
 
:::Using LDLIBS rather than CFLAGS worked. Thanks. --[[User:Rdm|Rdm]] 13:07, 29 July 2011 (UTC)
 
== Task description !!!! ==
 
Hi. Some programs make ASCII image on the screen, some make colur image to bmp, some to ppm file. I think that it makes comparisen very difficult ( ? impossible ). Regards --[[User:Adam majewski|Adam majewski]] 07:47, 26 November 2011 (UTC)
 
== Haskell ==
 
Hi. Haskell version works, but what means "\" in line
 
mandelbrot a = iterate (\z -> z^2 + a) 0 !! 50
 
????? Regards. --[[User:Adam majewski|Adam majewski]] 07:53, 26 November 2011 (UTC)
 
:<code>\</code> is how you write an anonymous function in Haskell (also known as lambda in some other functional languages). The symbol <code>\</code> is supposed to resemble the letter λ (lambda), which is used to write anonymous functions in lambda calculus. --[[User:Spoon!|Spoon!]] 10:59, 26 November 2011 (UTC)
 
=="One liners"==
Some nice contributions made in Haskell have been submitted as quoted code squashed, for some reason, into a "one-liner" format.
 
A Rosetta line consists of 80 chars at most.
Perhaps drop the "one-liner" framing, which costs legibility without adding value ?
 
Ormolu is a good standard formatter.
 
(and Hlint helps to iron out many marked or unexpected formulations). [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 09:07, 1 August 2021 (UTC)
 
== java ==
 
It works.--[[User:Xdv|xarilaos]] ([[User talk:Xdv|talk]]) 14:37, 20 January 2022 (UTC)
Anonymous user