我正在尝试编译我的程序(C语言),并且在终端中执行“ make Globe”命令时出现错误:
david@ubuntu-18:~/Desktop/untitled$ make Globe
gcc Main.o Countries.o hashTable.o KeyValuePair.o LinkedList.o -o Globe
/usr/bin/ld: Main.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: Countries.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:2: recipe for target 'Globe' failed
make: *** [Globe] Error 1
我该如何解决这个问题?