C Compiling: error: stray '\4' in program ; octal flow?

前端 未结 2 1941
滥情空心
滥情空心 2021-01-28 23:50

Trying to compile a load of .c files

(1) The files compile ok, using cc

cc -Wall -Wextra -Wunreachable-code -ggdb -O0 *.c 

2条回答
  •  滥情空心
    2021-01-29 00:50

    #include "liborientdb-c.a"
    

    .a files are not C source files. Or even text files for that matter.

    Usually, the .a files are added on the final link line of the compilation.

    cc -o something file.o file2.o liborientdb-c.a etc etc

提交回复
热议问题