C语言源代码makefile时碰到一个错误信息 5C

各位大神最近工作时编译C语言源代码makefile时碰到一个错误信息,就是make lib的时候报错了,错误信息如下,请问一下,这个到底是什么错误,跟oracle链接数据库有关系吗?因为我要编译这个代码时需要
安装oracle数据库客户端(为了包含里面的一个文件include $(ORACLE_HOME)/precomp/lib/env_precomp.mk),请问这到底该怎么解决呀?急用,谢谢!

gcc -g -c -DDEBUG -fPIC -DDB_ORACLE -DOS_LINUX -o swPreproc.o -I/home/lizhao/lizhao/inc -I/home/oracle/ora11g/client/precomp/public -I/home/oracle/ora11g/client/rdbms/public -I/home/oracle/ora11g/client/rdbms/demo -I/home/oracle/ora11g/client/plsql/public -I/home/lizhao/ibsrun/inc -I/usr/include/libxml2 -I/usr/include/libxml2/libxml swPreproc.c
Building swPreproc...
gcc -o /home/lizhao/lizhao/bin/swPreproc swPreproc.o
gcc -g -c -DDEBUG -fPIC -DDB_ORACLE -DOS_LINUX -o swMqapi.o -I/home/lizhao/lizhao/inc -I/home/oracle/ora11g/client/precomp/public -I/home/oracle/ora11g/client/rdbms/public -I/home/oracle/ora11g/client/rdbms/demo -I/home/oracle/ora11g/client/plsql/public -I/home/lizhao/ibsrun/inc -I/usr/include/libxml2 -I/usr/include/libxml2/libxml swMqapi.c
Building libmqapi.a...
ar rv /home/lizhao/lizhao/lib/libmqapi.a \
swMqapi.o
r - swMqapi.o
gcc -g -c -DDEBUG -fPIC -DDB_ORACLE -DOS_LINUX -o swUsrfun.o -I/home/lizhao/lizhao/inc -I/home/oracle/ora11g/client/precomp/public -I/home/oracle/ora11g/client/rdbms/public -I/home/oracle/ora11g/client/rdbms/demo -I/home/oracle/ora11g/client/plsql/public -I/home/lizhao/ibsrun/inc -I/usr/include/libxml2 -I/usr/include/libxml2/libxml swUsrfun.c
swUsrfun.c: In function 鈅ufProGETVALUE?
swUsrfun.c:4678: warning: passing argument 3 of 鈅swExpress?from incompatible pointer type
swUsrfun.c: In function 鈅ufProADDNODE?
swUsrfun.c:5051: warning: passing argument 3 of 鈅swExpress?from incompatible pointer type
swUsrfun.c:5125: warning: passing argument 3 of 鈅swExpress?from incompatible pointer type
swUsrfun.c:5206: warning: passing argument 3 of 鈅swExpress?from incompatible pointer type
swUsrfun.c:5273: warning: passing argument 3 of 鈅swExpress?from incompatible pointer type
swUsrfun.c: In function 鈅ufProADDPROP?
swUsrfun.c:5554: warning: passing argument 3 of 鈅swExpress?from incompatible pointer type
gcc -g -c -DDEBUG -fPIC -DDB_ORACLE -DOS_LINUX -o swXml.o -I/home/lizhao/lizhao/inc -I/home/oracle/ora11g/client/precomp/public -I/home/oracle/ora11g/client/rdbms/public -I/home/oracle/ora11g/client/rdbms/demo -I/home/oracle/ora11g/client/plsql/public -I/home/lizhao/ibsrun/inc -I/usr/include/libxml2 -I/usr/include/libxml2/libxml swXml.c
In file included from /home/lizhao/lizhao/inc/swxml.h:12,
from swXml.c:4:
/usr/include/libxml2/libxml/DOCBparser.h:22:2: warning: #warning "The DOCBparser module has been deprecated in libxml2-2.6.0"
swPreproc "" swUsrextfun.dbc swUsrextfun.pc
proc sqlcheck=syntax mode=oracle dbms=v8 unsafe_null=yes parse=none include=/home/lizhao/lizhao/inc include=/home/oracle/ora11g/client/precomp/public include=/home/oracle/ora11g/client/rdbms/public include=/home/oracle/ora11g/client/rdbms/demo include=/home/oracle/ora11g/client/plsql/public include=/home/oracle/ora11g/client/network/public iname=swUsrextfun.pc

Pro*C/C++: Release 11.2.0.1.0 - Production on Mon Mar 26 09:16:29 2018

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

System default option values taken from: /home/oracle/ora11g/client/precomp/admin/pcscfg.cfg

Syntax error at line 34, column 18, file swUsrextfun.pc:
Error at line 34, column 18 in file swUsrextfun.pc
EXEC SQL INCLUDE '../inc/swDbstruct.h';
.................1
PCC-S-02014, Encountered the symbol "" when expecting one of
the following:

: [ ] + / . .. an identifier, a string, a numeric constant,
define, elif, else, endif, error, if, ifdef, ifndef, include,
line, pragma, undef, exec, sql, begin, end, var, type,
oracle, an immediate preprocessor command, a C token, create,
function, package, procedure, trigger, or, replace,

Error at line 0, column 0 in file swUsrextfun.pc
PCC-F-02102, Fatal error while doing C preprocessing
make: *** [swUsrextfun.o] Error 1

1个回答

你的源码里面有中文?

baidu_30233079
baidu_30233079 没看到编译报什么错,最后直接退出了。看最后的信息好像你源码有什么特殊符号
大约 2 年之前 回复
baidu_31863299
baidu_31863299 那个“金月”是一个下划线,可能系统显示的问题,代码没有中文!
大约 2 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐