Hi, I have upgraded my desktop from Ubuntu 16.04 to Ubuntu 18. After I updated it, when I try to compile a CGI program, I got below error.
This is my compilation code.Code:relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC
How do i fix this issue in ubuntu 18Code:g++ -Ofast -g -std=c++0x -fPIC test.o -lm /usr/lib/libcgicc.a -L/usr/local/lib -o test.cgi
Bookmarks