[so] [Tema 4]Problema linkare

Cioponea Catalin cioponea_cata at yahoo.com
Mon May 9 17:55:08 EEST 2011


     Salut,

     Am urmatoarea problema cu Makefile-ul.Ii rog pe cei care inteleg 
eroarea, si stiu cauza, sa ma ajute.

gcc -Wall -shared -fPIC -o LibMonitor.so LibMonitor.o

/usr/bin/ld: LibMonitor.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
LibMonitor.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [LibMonitor.so] Error 1


Multumesc,
Catalin Cioponea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20110509/a71af097/attachment.htm>


More information about the so mailing list