megazone87 / pymmseg-cpp

Automatically exported from code.google.com/p/pymmseg-cpp
0 stars 0 forks source link

shared object compile #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
compile the current code on x86_64 platform issue the following error:

##########################
g++ -shared -o mmseg.so mmseg.o algor.o dict.o memory.o
/usr/bin/ld: mmseg.o: relocation R_X86_64_32 against `__gxx_personality_v0' 
can not be used when making a shared object; recompile with -fPIC
mmseg.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
#######################

this can be fixed by append -fPIC for cxx_flags in build.py.

Original issue reported on code.google.com by xueru...@gmail.com on 3 Dec 2009 at 11:11

GoogleCodeExporter commented 9 years ago
sorry, I found that this has been fixed in the repo. 

Original comment by xueru...@gmail.com on 3 Dec 2009 at 11:20

GoogleCodeExporter commented 9 years ago
The bug been fixed is in github. I suggest the author to update the download 
page on google code.

Original comment by alexdiao...@gmail.com on 14 Aug 2011 at 2:21