【问题标题】:Cannot get pro*c code to compile with gcc无法使用 gcc 编译 pro*c 代码
【发布时间】:2010-12-14 21:35:40
【问题描述】:

ld: 0711-317 ERROR: Undefined symbol: .main

Pro*C/C++:版本 10.2.0.3.0 - 2010 年 12 月 14 日星期二 14:54:27 生产

版权所有 (c) 1982、2005、甲骨文。保留所有权利。

系统默认选项值取自:

/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.

【问题讨论】:

    标签: gcc compilation


    【解决方案1】:

    嗯,有两个建议:

    • 您确定您的文件中有一个名为 main 的函数吗?
    • 您可以遵循编译器的建议:使用Use the -bloadmap or -bnoquiet option to obtain more information。那么它给出了什么?

    【讨论】:

      猜你喜欢
      • 2013-10-09
      • 1970-01-01
      • 1970-01-01
      • 2014-09-09
      • 1970-01-01
      • 1970-01-01
      • 2012-05-15
      • 2014-10-17
      • 1970-01-01
      相关资源
      最近更新 更多