skip to Main Content

Ubuntu – GCC Output Symbol not Relocatable with -fPIC

On an Ubuntu 24.04, using the default GCC-13.2 compiler I compiled a source file with -fPIC option to produce relocatable binary: /usr/bin/c++ -v -DBPFTIME_BUILD_WITH_LIBBPF=1 -DSPDLOG_COMPILED_LIB -Dbpftime_text_segment_transformer_EXPORTS -I/home/ahmad/Programs/bpftime/build/build/FridaGum-prefix/src/FridaGum -I/home/ahmad/Programs/bpftime/third_party/spdlog/include -fno-omit-frame-pointer -O3 -DNDEBUG -std=gnu++20 -fPIC -o text_segment_transformer.cpp.o -c /home/ahmad/Programs/bpftime/attach/text_segment_transformer/text_segment_transformer.cpp The compiler output…

VIEW QUESTION

Ubuntu – Can't compile C HelloWorld

I'm trying to get stated with programmming in C, but when I try to compile "HelloWorld" to run I get a (.text+0x1b): undefined reference to `main'error. Edit: I am using wsl. Ubuntu window: dodojesu@DumbshitsINC:~$ dir hello.c hello.c.save dodojesu@DumbshitsINC:~$ gcc hello.c…

VIEW QUESTION
Back To Top
Search