{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/rocksdb/issues/1266","repository_url":"https://api.github.com/repos/facebook/rocksdb","labels_url":"https://api.github.com/repos/facebook/rocksdb/issues/1266/labels{/name}","comments_url":"https://api.github.com/repos/facebook/rocksdb/issues/1266/comments","events_url":"https://api.github.com/repos/facebook/rocksdb/issues/1266/events","html_url":"https://github.com/facebook/rocksdb/issues/1266","id":170287973,"number":1266,"title":"Windows error: Compression type Snappy is not linked with the binary.","user":{"login":"brano543","id":6738774,"avatar_url":"https://avatars.githubusercontent.com/u/6738774?v=3","gravatar_id":"","url":"https://api.github.com/users/brano543","html_url":"https://github.com/brano543","followers_url":"https://api.github.com/users/brano543/followers","following_url":"https://api.github.com/users/brano543/following{/other_user}","gists_url":"https://api.github.com/users/brano543/gists{/gist_id}","starred_url":"https://api.github.com/users/brano543/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brano543/subscriptions","organizations_url":"https://api.github.com/users/brano543/orgs","repos_url":"https://api.github.com/users/brano543/repos","events_url":"https://api.github.com/users/brano543/events{/privacy}","received_events_url":"https://api.github.com/users/brano543/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":32,"created_at":"2016-08-09T22:38:30Z","updated_at":"2016-08-12T18:00:27Z","closed_at":null,"body":"I have compiled rocksdb with Visual Studio 2015 x64 using cmake as static library with --DSNAPPY=1 option according to tutorial for Windows in CMakeLists.txt and tried to use the c_simple_example (because only C API works, c++ example gets unresolved externals). All compiles well,but when i am calling\r\n`db = rocksdb_open(options, &nodesFileName[0], &err);`\r\ni get error \r\nInvalid argument: Compression type Snappy is not linked with the binary.\r\nIt doesn´t even work if i specify exactly not to use compression.\r\n`rocksdb_options_set_compression(options, 0);`\r\n\r\nI linked rocksdb with this version of snappy https://bitbucket.org/robertvazan/snappy-visual-cpp. Linking rocksdblib into project results in unresolved external snappy::RawCompress, so it can´t be compiled that way.\r\n\r\nHow do you compile this on Windows without the Snappy error? I am pretty sure i have tried all combinations of\r\nConfiguration type -> Static lib / Dynamic library\r\nand\r\nCode generation -> Multithreaded / Multithreaded DLL.\r\nOnly  Static lib/Multithreaded compiles it correctly, but maybe because of bugged C API it still throws the snappy error?\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/rocksdb/issues/comments/239517054","html_url":"https://github.com/facebook/rocksdb/issues/1266#issuecomment-239517054","issue_url":"https://api.github.com/repos/facebook/rocksdb/issues/1266","id":239517054,"user":{"login":"brano543","id":6738774,"avatar_url":"https://avatars.githubusercontent.com/u/6738774?v=3","gravatar_id":"","url":"https://api.github.com/users/brano543","html_url":"https://github.com/brano543","followers_url":"https://api.github.com/users/brano543/followers","following_url":"https://api.github.com/users/brano543/following{/other_user}","gists_url":"https://api.github.com/users/brano543/gists{/gist_id}","starred_url":"https://api.github.com/users/brano543/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brano543/subscriptions","organizations_url":"https://api.github.com/users/brano543/orgs","repos_url":"https://api.github.com/users/brano543/repos","events_url":"https://api.github.com/users/brano543/events{/privacy}","received_events_url":"https://api.github.com/users/brano543/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T18:00:27Z","updated_at":"2016-08-12T18:00:27Z","body":"@yuslepukhin I wanted to try the bulk load,but this line is giving me a hard time\r\n`SstFileWriter sst_file_writer(EnvOptions(), ioptions, options.comparator);`\r\nI can´t find a way to send there those EnvOptions. I have tried\r\n```\r\nconst rocksdb::EnvOptions eopts;\r\n\t\trocksdb::SstFileWriter sst_file_writer(eopts, ioptions, options.comparator);\r\nand\r\n`rocksdb::SstFileWriter sst_file_writer(rocksdb::EnvOptions(), ioptions, options.comparator);`\r\nIt´s still saying i am not sending there const. How do you do it?\r\n```"}}
{"actor":{"display_login":"brano543"}}