Discussion:
[leveldb] Integrate leveldb in MPI program
Sum Tsu
2016-10-09 01:46:58 UTC
Permalink
I used Leveldb in MPI programs, but compiling MPI program fails using MPI
compiler due to LevelDb. Does anyone have solution to this? Thanks.
--
You received this message because you are subscribed to the Google Groups "leveldb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leveldb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Julian Gruber' via leveldb
2016-10-09 17:01:20 UTC
Permalink
What errors are you getting?
Post by Sum Tsu
I used Leveldb in MPI programs, but compiling MPI program fails using MPI
compiler due to LevelDb. Does anyone have solution to this? Thanks.
--
You received this message because you are subscribed to the Google Groups "leveldb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leveldb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sum Tsu
2016-10-10 23:25:36 UTC
Permalink
When I compile the program, it gives following error:

mpicc -o test.out mpiTest.c

libmpi.so: undefined reference to `leveldb_put'
libmpi.so: undefined reference to `leveldb_options_set_create_if_missing'
libmpi.so: undefined reference to `leveldb_writeoptions_create'
libmpi.so: undefined reference to `leveldb_free'
libmpi.so: undefined reference to `leveldb_open'
libmpi.so: undefined reference to `leveldb_close'
libmpi.so: undefined reference to `leveldb_options_create'

But, I have included the header file and also given the path of header file.
Post by 'Julian Gruber' via leveldb
What errors are you getting?
Post by Sum Tsu
I used Leveldb in MPI programs, but compiling MPI program fails using MPI
compiler due to LevelDb. Does anyone have solution to this? Thanks.
--
You received this message because you are subscribed to the Google Groups "leveldb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leveldb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Robert Escriva
2016-10-11 02:12:25 UTC
Permalink
Add -lleveldb to link the library.

-Robert
Post by Sum Tsu
mpicc -o test.out mpiTest.c
libmpi.so: undefined reference to `leveldb_put'
libmpi.so: undefined reference to `leveldb_options_set_create_if_missing'
libmpi.so: undefined reference to `leveldb_writeoptions_create'
libmpi.so: undefined reference to `leveldb_free'
libmpi.so: undefined reference to `leveldb_open'
libmpi.so: undefined reference to `leveldb_close'
libmpi.so: undefined reference to `leveldb_options_create'
But, I have included the header file and also given the path of header file.
What errors are you getting?
I used Leveldb in MPI programs, but compiling MPI program fails using
MPI compiler due to LevelDb. Does anyone have solution to this? Thanks.
--
You received this message because you are subscribed to the Google Groups "leveldb" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "leveldb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leveldb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sum Tsu
2016-10-11 22:02:55 UTC
Permalink
I added -lleveldb but still it is giving me the same error.
mpicc -o test.out mpiTest.c -lleveldb
Post by Robert Escriva
Add -lleveldb to link the library.
-Robert
Post by Sum Tsu
mpicc -o test.out mpiTest.c
libmpi.so: undefined reference to `leveldb_put'
libmpi.so: undefined reference to
`leveldb_options_set_create_if_missing'
Post by Sum Tsu
libmpi.so: undefined reference to `leveldb_writeoptions_create'
libmpi.so: undefined reference to `leveldb_free'
libmpi.so: undefined reference to `leveldb_open'
libmpi.so: undefined reference to `leveldb_close'
libmpi.so: undefined reference to `leveldb_options_create'
But, I have included the header file and also given the path of header
file.
Post by Sum Tsu
What errors are you getting?
I used Leveldb in MPI programs, but compiling MPI program fails
using
Post by Sum Tsu
MPI compiler due to LevelDb. Does anyone have solution to this?
Thanks.
Post by Sum Tsu
--
You received this message because you are subscribed to the Google
Groups
Post by Sum Tsu
"leveldb" group.
To unsubscribe from this group and stop receiving emails from it, send
an email
Post by Sum Tsu
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "leveldb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leveldb+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...