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

牧云@^-^@ 提交于 2019-12-02 04:43:21
#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

You are including a binary file in your .cpp source

(line 1 of testme.cpp)
#include "liborientdb-c.a"

Look for a header file named "liborientdb-c.h", and include that (guessing, you probably want to include all of the appropriate *.h header files).

And your makefile should link against the above .a file.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!