<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 88, comments - 3, trackbacks - 0, articles - 0
      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

    axis2/c的hello.c編譯不過的原因

    Posted on 2015-08-18 17:59 Milo的海域 閱讀(347) 評論(0)  編輯  收藏 所屬分類: Linux 、C
    http://axis.apache.org/axis2/c/core/docs/axis2c_manual.html#client_api 的hello.c client 編譯命令在我的ubuntu 12.04s上總是報錯
    gcc -o hello -I$AXIS2C_HOME/include/axis2-1.6.0/ -L$AXIS2C_HOME/lib -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread -laxis2_http_sender -laxis2_http_receiver -ldl -Wl,--rpath -Wl,$AXIS2C_HOME/lib hello.c
    /tmp/ccCYikFh.o: In function `main':
    hello.c:(.text+0x57): undefined reference to `axutil_env_create_all'
    hello.c:(.text+0x68): undefined reference to `axis2_options_create'
    hello.c:(.text+0x93): undefined reference to `axutil_strcmp'
    hello.c:(.text+0xeb): undefined reference to `axis2_endpoint_ref_create'
    hello.c:(.text+0x102): undefined reference to `axis2_options_set_to'
    hello.c:(.text+0x13d): undefined reference to `axis2_svc_client_create'
    hello.c:(.text+0x168): undefined reference to `axutil_error_get_message'
    hello.c:(.text+0x193): undefined reference to `axutil_log_impl_log_error'
    hello.c:(.text+0x1b1): undefined reference to `axis2_svc_client_set_options'
    hello.c:(.text+0x1d6): undefined reference to `axis2_svc_client_send_receive'
    hello.c:(.text+0x21d): undefined reference to `axiom_node_free_tree'
    hello.c:(.text+0x238): undefined reference to `axutil_error_get_message'
    hello.c:(.text+0x266): undefined reference to `axutil_log_impl_log_error'
    hello.c:(.text+0x28d): undefined reference to `axis2_svc_client_free'
    hello.c:(.text+0x2a8): undefined reference to `axutil_env_free'
    /tmp/ccCYikFh.o: In function `build_om_request':
    hello.c:(.text+0x2ed): undefined reference to `axiom_element_create'
    hello.c:(.text+0x307): undefined reference to `axiom_element_set_text'
    /tmp/ccCYikFh.o: In function `process_om_response':
    hello.c:(.text+0x337): undefined reference to `axiom_node_get_first_child'
    hello.c:(.text+0x351): undefined reference to `axiom_node_get_node_type'
    hello.c:(.text+0x367): undefined reference to `axiom_node_get_data_element'
    hello.c:(.text+0x381): undefined reference to `axiom_text_get_value'
    hello.c:(.text+0x396): undefined reference to `axiom_text_get_value'
    collect2: error: ld returned 
    1 exit status
    仔細檢查了gcc命令,頭文件,庫文件的路徑都是對的,最后跟同事討論才發現hello.c的位置的問題。。如果hello.c的位置放到了依賴庫的右面 就會報類似錯誤。但是官方的例子應該是測試過的,怎么會有這個問題呢? 難道我的ubuntu 12.04的gcc比較嚴格?

    修正后的gcc命令如下
    gcc -o hello hello.c  -I$AXIS2C_HOME/include/axis2-1.6.0/ -L$AXIS2C_HOME/lib -laxutil -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread -laxis2_http_sender -laxis2_http_receiver -ldl -Wl,--rpath -Wl,$AXIS2C_HOME/lib
    主站蜘蛛池模板: 亚洲五月综合缴情在线观看| 亚洲国产人成中文幕一级二级| 亚洲成AV人片一区二区密柚| 波霸在线精品视频免费观看| 日韩精品亚洲aⅴ在线影院| 成人在线免费视频| 国产亚洲午夜高清国产拍精品 | 97无码人妻福利免费公开在线视频 | 秋霞人成在线观看免费视频 | 日本免费在线观看| 亚洲第一精品福利| 成年黄网站色大免费全看| 国产精品亚洲综合久久 | 大学生a级毛片免费观看| 美女被艹免费视频| 综合亚洲伊人午夜网 | 亚洲欧洲一区二区| 亚色九九九全国免费视频| 亚洲日韩精品无码专区加勒比☆| 日韩高清在线免费看| 精品熟女少妇aⅴ免费久久| 亚洲尹人香蕉网在线视颅| 久久久久久免费视频| 国产亚洲漂亮白嫩美女在线| 国产午夜亚洲精品国产成人小说| 国产午夜免费高清久久影院| 亚洲人xxx日本人18| 在线日韩av永久免费观看| 99re6在线精品免费观看| 久久精品国产亚洲AV电影| 在线a毛片免费视频观看| 国产男女爽爽爽免费视频| 亚洲欧洲日韩综合| 又黄又爽无遮挡免费视频| 久久午夜夜伦鲁鲁片无码免费| 亚洲国产日韩精品| 亚洲AV一宅男色影视| 国产精品公开免费视频| 免费A级毛片无码专区| 国产亚洲精品美女久久久久久下载| 亚洲VA中文字幕不卡无码|