./lib/libmemkind.a: member ./lib/libmemkind.a(libjemalloc_pic.a) in archive is not an object
collect2: error: ld returned 1 exit status
--
You received this message because you are subscribed to the Google Groups "pmem" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pmem+uns...@googlegroups.com.
To post to this group, send email to pm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pmem/f429f9c3-2cfb-4062-8c88-ee2fa73baa66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
g++ -std=c++11 -I./deps/memkind/include/ -L./deps/memkind/.libs/ -Wl,--whole-archive -Bstatic -lmemkind -Wl,--no-whole-archive -Bdynamic-lpthread ....
static_lib: jemalloc/obj/lib/libjemalloc_pic.a libmemkind.la
bash -c "ar -M < <(echo -e '$(ar_prog)')"
cp libmemkind.a .libs/
rm libmemkind.a
lib_LTLIBRARIES = libmemkind.la
Hi,It really depends on how you are actually linking in your Makefile. Have you added the library directory to a -L flag and added the library as -lmemkind?cheersadrianj
On Tue, Apr 16, 2019 at 4:31 AM <chris...@gmail.com> wrote:
Hi experts,--I am working on a project in which I want to statically link the libmemkind. I copied the libmemkind.a in the libmemkind/.libs/ and header file to my project and try to link it. But it reports./lib/libmemkind.a: member ./lib/libmemkind.a(libjemalloc_pic.a) in archive is not an object
collect2: error: ld returned 1 exit status
I wrote the makefile of my project my self. I understand I might need to modify the Makefile.am in libmemkind, but I am not quite familiar with automake and libtool stuff.Is there someone could help to tell me how I can make it quickly and correctly?Thanks,Chris
You received this message because you are subscribed to the Google Groups "pmem" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pm...@googlegroups.com.
if ((errno = posix_fallocate(priv->fd, priv->offset, size)) != 0) { pthread_mutex_unlock(&priv->pmem_lock); return MAP_FAILED; }result = priv->addr + priv->offset;priv->offset += size;.. if ((errno = posix_fallocate(priv->fd, priv->offset, size)) != 0) { pthread_mutex_unlock(&priv->pmem_lock); return MAP_FAILED; } result = priv->addr + priv->offset; priv->offset += size;To unsubscribe from this group and stop receiving emails from it, send an email to pmem+uns...@googlegroups.com.
To post to this group, send email to pm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pmem/b5e05798-bdd9-41dd-80e3-0b8c1663ca82%40googlegroups.com.