{"action":"closed","issue":{"url":"https://api.github.com/repos/fredrik-johansson/arb/issues/82","repository_url":"https://api.github.com/repos/fredrik-johansson/arb","labels_url":"https://api.github.com/repos/fredrik-johansson/arb/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/fredrik-johansson/arb/issues/82/comments","events_url":"https://api.github.com/repos/fredrik-johansson/arb/issues/82/events","html_url":"https://github.com/fredrik-johansson/arb/issues/82","id":124609656,"number":82,"title":"/usr/local/include/nmod_vec.h:37:26: fatal error: ulong_extras.h","user":{"login":"adammaj1","id":1731329,"avatar_url":"https://avatars.githubusercontent.com/u/1731329?v=3","gravatar_id":"","url":"https://api.github.com/users/adammaj1","html_url":"https://github.com/adammaj1","followers_url":"https://api.github.com/users/adammaj1/followers","following_url":"https://api.github.com/users/adammaj1/following{/other_user}","gists_url":"https://api.github.com/users/adammaj1/gists{/gist_id}","starred_url":"https://api.github.com/users/adammaj1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adammaj1/subscriptions","organizations_url":"https://api.github.com/users/adammaj1/orgs","repos_url":"https://api.github.com/users/adammaj1/repos","events_url":"https://api.github.com/users/adammaj1/events{/privacy}","received_events_url":"https://api.github.com/users/adammaj1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-01-02T20:14:30Z","updated_at":"2016-11-20T16:25:20Z","closed_at":"2016-11-20T16:25:20Z","body":"Hi, I have Ubuntu 14.04 LTS. After installation : https://pl.wikibooks.org/wiki/Programowanie_w_systemie_UNIX/ARB#Instalacja\n I have tried to compile a program from  http://fredrikj.net/arb/setup.html\n\n/*\ngcc -I/usr/local/include/flint/  -L/usr/local/include/flint/ -larb c.c\ngcc -larb c.c\n gcc -lflint -lgmp -lmpfr -larb -I/usr/include/flint c.c\ngcc -I/usr/local/include -I/usr/local/include/flint/ -L/usr/local/lib -larb c.c\ngcc -lflint -lgmp -lmpfr -larb -I/usr/local/include -I/usr/local/include/flint/ -L/usr/local/lib  c.c\n*/\n# include <arb.h>\n\nint main()\n{\n    arb_t x;\n    arb_init(x);\n    arb_const_pi(x, 50 \\* 3.33);\n    arb_printn(x, 50, 0); flint_printf(\"\\n\");\n    flint_printf(\"Computed with arb-%s\\n\", arb_version);\n    arb_clear(x);\n}\n\nNothing works : \n\n gcc -larb c.c\nIn file included from /usr/local/include/fmpz.h:45:0,\n                 from /usr/local/include/fmpr.h:37,\n                 from /usr/local/include/fmprb.h:29,\n                 from /usr/local/include/arb.h:36,\n                 from c.c:16:\n/usr/local/include/nmod_vec.h:37:26: fatal error: ulong_extras.h: Nie ma takiego pliku ani katalogu\n #include \"ulong_extras.h\"\n                          ^\ncompilation terminated.\na@zalman:~/c/varia/arb/1$ gcc -I/usr/local/include -L/usr/local/lib -larb c.c\nIn file included from /usr/local/include/fmpz.h:45:0,\n                 from /usr/local/include/fmpr.h:37,\n                 from /usr/local/include/fmprb.h:29,\n                 from /usr/local/include/arb.h:36,\n                 from c.c:16:\n/usr/local/include/nmod_vec.h:37:26: fatal error: ulong_extras.h: Nie ma takiego pliku ani katalogu\n #include \"ulong_extras.h\"\n                          ^\ncompilation terminated.\na@zalman:~/c/varia/arb/1$ locate ulong_extras.h\n/home/a/flint2/ulong_extras.h\n/usr/local/include/flint/ulong_extras.h\na@zalman:~/c/varia/arb/1$ gcc -I/usr/local/include -I/usr/local/include/flint/ -L/usr/local/lib -larb c.c\n/tmp/cc9MgIvo.o: In function `_fmpz_demote':\nc.c:(.text+0x28): undefined reference to`_fmpz_clear_mpz'\n/tmp/cc9MgIvo.o: In function `arf_clear':\nc.c:(.text+0xfc): undefined reference to`_arf_demote'\n/tmp/cc9MgIvo.o: In function `arb_printn':\nc.c:(.text+0x181): undefined reference to`arb_fprintn'\n/tmp/cc9MgIvo.o: In function `main':\nc.c:(.text+0x1a8): undefined reference to`arb_const_pi'\nc.c:(.text+0x1cd): undefined reference to `flint_printf'\nc.c:(.text+0x1d4): undefined reference to`arb_version'\nc.c:(.text+0x1e6): undefined reference to `flint_printf'\ncollect2: error: ld returned 1 exit status\na@zalman:~/c/varia/arb/1$ gcc -lflint -lgmp -lmpfr -larb -I/usr/local/include -I/usr/local/include/flint/ -L/usr/local/lib  c.c\n/tmp/ccdsyzvn.o: In function`_fmpz_demote':\nc.c:(.text+0x28): undefined reference to `_fmpz_clear_mpz'\n/tmp/ccdsyzvn.o: In function`arf_clear':\nc.c:(.text+0xfc): undefined reference to `_arf_demote'\n/tmp/ccdsyzvn.o: In function`arb_printn':\nc.c:(.text+0x181): undefined reference to `arb_fprintn'\n/tmp/ccdsyzvn.o: In function`main':\nc.c:(.text+0x1a8): undefined reference to `arb_const_pi'\nc.c:(.text+0x1cd): undefined reference to`flint_printf'\nc.c:(.text+0x1d4): undefined reference to `arb_version'\nc.c:(.text+0x1e6): undefined reference to`flint_printf'\ncollect2: error: ld returned 1 exit status\n\nBut I can compile arb program : \n\n cd arb\na@zalman:~/arb$ build/examples/keiper_li 100\nzeta: cpu/wall(s): 0.002 0.002\nvirt/peak/res/peak(MB): 25.09 25.09 5.61 5.61\nlog: cpu/wall(s): 0 0.001\ngamma: cpu/wall(s): 0 0\nbinomial transform: cpu/wall(s): 0.001 0\n0: -0.69314718055994530941723212145817656807550013436029 +/- 6.8425e-49\n1: 0.023095708966121033814310247906495291621932127152268 +/- 3.9868e-48\n2: 0.046172867614023335192864243096033943387066108314182 +/- 1.2738e-47\n3: 0.069212973518108267930497348872601068994212026394777 +/- 4.371e-47\n4: 0.092197619873060409647627872409439018065541673496812 +/- 1.4868e-46\n5: 0.11510854289223549048622128109857276671349132305427 +/- 5.0294e-46\n6: 0.13792766871372988290416713700341666356138966082885 +/- 1.7102e-45\n7: 0.16063715965299421294040287257385366292282442055073 +/- 5.7197e-45\n8: 0.1832194596433825790819393177472185984899809829119 +/- 1.8768e-44\n9: 0.20565733870917046170289387421343304741236553444664 +/- 6.1276e-44\n10: 0.22793393631931577436930340573684453380748386010511 +/- 2.0045e-43\n91: 1.1359793878546436002006561104313275551533628689671 +/- 1.4607e-12\n92: 1.1415669830327489959098935595739035602228202255345 +/- 3.3161e-12\n93: 1.1471530138314698130651717448646005362180579682481 +/- 7.578e-12\n94: 1.1527358323988920619177722932285812811855471805232 +/- 1.7414e-11\n95: 1.1583134879564705721273560069201683049927946600968 +/- 4.019e-11\n96: 1.1638837494169548403983835123477214984893522087425 +/- 9.3048e-11\n97: 1.1694441288315003718368092993985140290769315690077 +/- 2.1584e-10\n98: 1.1749919055490018710276285598764024158910189825872 +/- 5.0109e-10\n99: 1.1805241509689506316631106075371800417317838090829 +/- 1.1631e-09\n100: 1.1860377537679132994976271782020433469152756094002 +/- 2.6968e-09\nvirt/peak/res/peak(MB): 25.09 25.09 6.03 6.03\na@zalman:~/arb$ \n\nAny tips ? \nTIA\n\nAdam\n"}}
{"actor":{"display_login":"adammaj1"}}