各位高手,我在编译C代码时报错,不懂错误原因,请各位指点。
db2inst1@vmhost:~/usr> make
db2 connect to sample user tsp30 using tsp30
Database Connection Information
Database server = DB2/LINUX 10.1.0
SQL authorization ID = TSP30
Local database alias = SAMPLE
db2 "prep demo.sqc bindfile preprocessor 'gcc -I/home/db2inst1/sqllib/include -DDEBUG -E -o demo.i'"
LINE MESSAGES FOR demo.sqc
------ --------------------------------------------------------------------
SQL0060W The "C" precompiler is in progress.
36 SQL4001N The character "? in column "19" on line "36" is
not valid.
SQL0095N No bind file was created because of previous
errors.
SQL0091W Precompilation or binding was ended with "2"
errors and "0" warnings.
make: *** [demo] Error 4
------解决方案--------------------------------------------------------
没加过中文,你看看是不是上传的时候,变乱码了。或者,你直接在服务器上改一下。