gorocksdb | gorocksdb is a Go wrapper for RocksDB | Key Value Database library
kandi X-RAY | gorocksdb Summary
kandi X-RAY | gorocksdb Summary
gorocksdb is a Go wrapper for RocksDB
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gorocksdb
gorocksdb Key Features
gorocksdb Examples and Code Snippets
Community Discussions
Trending Discussions on gorocksdb
QUESTION
I am trying to use gorocksdb which is a cgo package wapping the rocksdb library on windows.
- I built the rocksdb library with vcpkg which gave me as output rocksdb-shared.dll. I set the build path to my PATH.
- I installed msys64 in order to have gcc
- I have set
CGO_CFLAGS="-I/path/to/rocksdb/include"
andCGO_LDFLAGS="-L/path/to/rocksdb -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -llz4 -lzstd"
- I have renammed rocksdb-shared.dll to librocksdb.dll because the linker requires the dll to start with
lib
- I do the
go get ...
command - I run my test go file and I get the error
The programer can't start because rocksdb-shared.dll is missing ...
- If I rename it back to rocksdb-shared.dll the build fails because the linker can't find librocksdb.dll
- The only way to make it work is to have both rocksdb-shared.dll and librocksdb.dll in the PATH
Why the executable keeps loading rocksdb-shared.dll? I don't find any reference to it in the cgo package.
...ANSWER
Answered 2018-May-15 at 11:29I think I found the answer to my question.
I think I can't rename the compiled dll because the dll "reference" itself as this name. So it won't load properly.
To resolve my problem I just renamed the parameter in the LDFLAG from -lrocksdb to -lrocksdb-shared in both my environement variable and in this file
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gorocksdb
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page