无法使用 gcc 编译 pro*c 代码
ld: 0711-317 错误: 未定义符号: .main <-- 这是我无法弄清楚的。
Pro*C/C++:版本 10.2.0.3.0 - 于 2010 年 12 月 14 日星期二 14:54:27 发布
版权所有 (c) 1982,2005,Oracle。版权所有。
系统默认选项值取自:
/orasw/app/oracle/product/10g/db/precomp/admin/pcscfg.cfg
gcc -w -maix64 -I/orasw/app/oracle/product/10g/db/precomp/public -L/orasw/app/oracle/product/10g/db/lib send_to_audit_tbl.c -I/actapps/批处理/sctp/mme/incl -I/orasw/app/oracle/product/10g/db/precomp/public -I/usr/include -I。 -I/actapps/batch/sctp/mme/incl /actapps/batch/sctp/mme/bin/Validata.o /orasw/app/oracle/product/10g/db/lib/libclntsh.so -o send_to_audit_tbl ld:0711-317 错误:未定义符号:.main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.
Stop.
ld: 0711-317 ERROR: Undefined symbol: .main <-- This is what I can't figure out.
Pro*C/C++: Release 10.2.0.3.0 - Production on Tue Dec 14 14:54:27 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
System default option values taken from:
/orasw/app/oracle/product/10g/db/precomp/admin/pcscfg.cfg
gcc -w -maix64 -I/orasw/app/oracle/product/10g/db/precomp/public -L/orasw/app/oracle/product/10g/db/lib send_to_audit_tbl.c -I/actapps/batch/sctp/mme/incl -I/orasw/app/oracle/product/10g/db/precomp/public -I/usr/include -I. -I/actapps/batch/sctp/mme/incl /actapps/batch/sctp/mme/bin/Validata.o /orasw/app/oracle/product/10g/db/lib/libclntsh.so -o send_to_audit_tbl
ld: 0711-317 ERROR: Undefined symbol: .main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.
Stop.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,有两个建议:
main
的函数吗?使用 -bloadmap 或 -bnoquiet 选项来获取更多信息
。那么它能带来什么呢?Well, two suggestions:
main
in your files?Use the -bloadmap or -bnoquiet option to obtain more information
. What does it give, then?