Chinaunix

标题: 菜鸟请教在AIX中编译程序的问题 [打印本页]

作者: hclw    时间: 2006-08-22 10:51
标题: 菜鸟请教在AIX中编译程序的问题
我有一程序名为embedsql.ec,在c中嵌套sql语法。用cc或xlC编译cc -o embedsql embedsql.ec,提示信息如下:
cc:1501-218 file embedsql.ec contains an incorrect file suffix
ld:0711-715 ERROR:File embedsql.ec connot be processed.
                     The file must be an object file,an import file,or an archive.
请高手指教该怎样编译?
作者: 新手上路2世    时间: 2006-08-22 10:57
incorrect file suffix,  不正确的文件后缀!!
作者: hclw    时间: 2006-08-22 11:03
嵌套sql的程序后缀名就应是.ec呀。
作者: namtso    时间: 2006-08-22 11:46
你先得使用数据库提供的工具,把.ec文件转换成.c文件,或者,数据库的工具可能会生成.c文件后,自动调用cc完成编译。
反正cc不是能用来处理.ec文件的
作者: littlezgj    时间: 2006-08-22 11:58
esql -o embedsql.c embedsql.ec
cc -o embedsql embedsql.c
作者: bigapple2008    时间: 2006-08-22 13:54
去了解下预编译器吧,很多数据库都提供的。
作者: xiaomiao    时间: 2006-08-22 15:14
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2