lundi 17 septembre 2018

relocation R_X86_64_32 against symbol linking error

Okay so I've been programming an exercice for my university in c++ and it compiles correctly but when I link the .o files to get my executable, my console shows this error.

/usr/bin/x86_64-linux-gnu-ld: Estudiant.o: relocation R_X86_64_32 against symbol `_ZTI12PRO2Excepcio' can not be used when making a PIE object; recompile con -fPIC /usr/bin/x86_64-linux-gnu-ld: falló el enlace final: Sección no representable en la salida collect2: error: ld returned 1 exit status

I have no idea of what kind of error is this and it frustrates me very much. The part in spanish means:

final linking has failed: Section not representable at release

Thanks!

Aucun commentaire:

Enregistrer un commentaire