Hello I get this error whem I am trying to do the make:
relocation R_X86_64_32 against `vtable for Torch::MemoryDataSet' can not be used when making a shared object; recompile with -fPIC
It says that I should recompile with the -fPIC option, I do that adding the -fPIC option to CFLAGS and CXXFLAGS but I still get the same error, any way to solve this?. I have seen that this problem is related with the use of a 64 bits machine, and it is true because I am using one.
Thanks.
-
I had this problem quite a while back and if I remember correctly, the fix was moving the placement of -fPIC just after gcc in the command line. Made absolutely no sense, and less so now, but as I remember, that fixed it.
ashishsony : this did work for me aswell... adding -fPIC directly after gcc in Makefile i.e CC=gcc -pthread -fPIC -
Related question
http://stackoverflow.com/questions/1250608/passing-a-gcc-flag-through-makefile
Should have checked yours before posting mine.
0 comments:
Post a Comment