{"action":"created","issue":{"url":"https://api.github.com/repos/casinocoin/casinocoin/issues/24","repository_url":"https://api.github.com/repos/casinocoin/casinocoin","labels_url":"https://api.github.com/repos/casinocoin/casinocoin/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/casinocoin/casinocoin/issues/24/comments","events_url":"https://api.github.com/repos/casinocoin/casinocoin/issues/24/events","html_url":"https://github.com/casinocoin/casinocoin/issues/24","id":160434533,"number":24,"title":"compile on linux","user":{"login":"buechling","id":8421814,"avatar_url":"https://avatars.githubusercontent.com/u/8421814?v=3","gravatar_id":"","url":"https://api.github.com/users/buechling","html_url":"https://github.com/buechling","followers_url":"https://api.github.com/users/buechling/followers","following_url":"https://api.github.com/users/buechling/following{/other_user}","gists_url":"https://api.github.com/users/buechling/gists{/gist_id}","starred_url":"https://api.github.com/users/buechling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buechling/subscriptions","organizations_url":"https://api.github.com/users/buechling/orgs","repos_url":"https://api.github.com/users/buechling/repos","events_url":"https://api.github.com/users/buechling/events{/privacy}","received_events_url":"https://api.github.com/users/buechling/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-15T14:21:30Z","updated_at":"2016-06-15T14:40:45Z","closed_at":"2016-06-15T14:40:45Z","body":"you added a \"fix\" for linux recently.. but it does not work for me:\r\n\r\ng++: error: unrecognized command line option ‘-std=c++14’\r\n\r\nwhen i remove the flag, i get the error:\r\n\r\n\tg++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/home/user/casinocoin/src -I/home/user/casinocoin/src/obj -IOME/deps/boost_1_60_0 -IOME/deps/db-5.1.29.NC/build_unix -IOME/deps/openssl-1.0.2g -IOME/deps/miniupnpc-1.9 -DUSE_IPV6=1 -I/home/user/casinocoin/src/leveldb/include -I/home/user/casinocoin/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/main.d -o obj/main.o main.cpp\r\n\tmain.cpp: In function ‘CBlockTemplate* CreateNewBlock(const CScript&)’:\r\n\tmain.cpp:4495:5: error: ‘unique_ptr’ is not a member of ‘std’\r\n\t\t std::unique_ptr<CBlockTemplate> pblocktemplate(new CBlockTemplate());\r\n\t\t ^\r\n\tmain.cpp:4495:35: error: expected primary-expression before ‘>’ token\r\n\t\t std::unique_ptr<CBlockTemplate> pblocktemplate(new CBlockTemplate());\r\n\t\t\t\t\t\t\t\t\t   ^\r\n\tmain.cpp:4495:72: error: ‘pblocktemplate’ was not declared in this scope\r\n\t\t std::unique_ptr<CBlockTemplate> pblocktemplate(new CBlockTemplate());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t^\r\n\tmain.cpp: In function ‘void CasinoCoinMiner(CWallet*)’:\r\n\tmain.cpp:4863:9: error: ‘unique_ptr’ is not a member of ‘std’\r\n\t\t\t std::unique_ptr<CBlockTemplate> pblocktemplate(CreateNewBlockWithKey(reservekey));\r\n\t\t\t ^\r\n\tmain.cpp:4863:39: error: expected primary-expression before ‘>’ token\r\n\t\t\t std::unique_ptr<CBlockTemplate> pblocktemplate(CreateNewBlockWithKey(reservekey));\r\n\t\t\t\t\t\t\t\t\t\t   ^\r\n\tmain.cpp:4863:89: error: ‘pblocktemplate’ was not declared in this scope\r\n\t\t\t std::unique_ptr<CBlockTemplate> pblocktemplate(CreateNewBlockWithKey(reservekey));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ^\r\n\tmain.cpp: In function ‘CBlockTemplate* CreateNewBlock(const CScript&)’:\r\n\tmain.cpp:4729:1: warning: control reaches end of non-void function [-Wreturn-type]\r\n\t }\r\n\t ^\r\n\tmake: *** [obj/main.o] Error 1\r\n\r\nso how can i compile?"},"comment":{"url":"https://api.github.com/repos/casinocoin/casinocoin/issues/comments/226208277","html_url":"https://github.com/casinocoin/casinocoin/issues/24#issuecomment-226208277","issue_url":"https://api.github.com/repos/casinocoin/casinocoin/issues/24","id":226208277,"user":{"login":"buechling","id":8421814,"avatar_url":"https://avatars.githubusercontent.com/u/8421814?v=3","gravatar_id":"","url":"https://api.github.com/users/buechling","html_url":"https://github.com/buechling","followers_url":"https://api.github.com/users/buechling/followers","following_url":"https://api.github.com/users/buechling/following{/other_user}","gists_url":"https://api.github.com/users/buechling/gists{/gist_id}","starred_url":"https://api.github.com/users/buechling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buechling/subscriptions","organizations_url":"https://api.github.com/users/buechling/orgs","repos_url":"https://api.github.com/users/buechling/repos","events_url":"https://api.github.com/users/buechling/events{/privacy}","received_events_url":"https://api.github.com/users/buechling/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T14:40:45Z","updated_at":"2016-06-15T14:40:45Z","body":"ah i did not find that.. great hint. thank you!\r\n\r\nhad GCC 4.8 and tried 4.9 - but oviously 5.0 is needed\r\nthis does the trick on ubuntu:\r\n\r\n\tsudo add-apt-repository ppa:ubuntu-toolchain-r/test \r\n\tsudo apt-get update\r\n\tsudo apt-get install gcc-5 g++-5\r\n\tsudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5\r\n"}}
{"actor":{"display_login":"buechling"}}