I have a C program that I want to compile it for RISCV ISA. I have followed their instruction for installing the tools. Their tools work correctly and I can compile a "Hello world!" C program and run it. But right now I want to compile another C program that contains multiple files. I tried to change the makefile and instead of using gcc, I replace it with their compiler name riscv64-unknown-linux-gnu-gcc but I got:
Relocations in generic ELF (EM: 62)
error, then I tried to set CC = riscv64-unknown-linux-gnu-gcc but I got another error about pthread
unrecognized command line option '-pthread'
My question is that should I change the make file to use their compiler?
Thanks for your help in advance.
-D_REENTRANTfor compiling and-lpthreadfor linking. - mpromonet