Skip to content

Can't compile ("relocation can not be used") #29

Description

@kar

A fresh install of ubuntu 16.10, make, getting this:

g++ -o g13d -std=c++0x \
	g13_main.o g13.o g13_log.o g13_fonts.o g13_lcd.o g13_stick.o g13_keys.o helper.o \
 	-lusb-1.0 -lboost_program_options \
 	-lboost_log    \
 	-lboost_system -lpthread
/usr/bin/ld: g13.o: relocation R_X86_64_32 against symbol `_ZN5boost9parameter7keywordINS_3log11v2_mt_posix8keywords3tag8severityEE8instanceE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: g13_log.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: g13_fonts.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: g13_lcd.o: relocation R_X86_64_32 against symbol `_ZN5boost9parameter7keywordINS_3log11v2_mt_posix8keywords3tag8severityEE8instanceE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: g13_stick.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: g13_keys.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: helper.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:33: recipe for target 'g13d' failed
make: *** [g13d] Error 1

Compiled on Mint just fine before, not sure what I am doing wrong...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions