【问题标题】:Monotouch: Adding .a resource , gcc errorMonotouch:添加 .a 资源,gcc 错误
【发布时间】:2011-09-06 02:53:43
【问题描述】:

使用本项目:https://github.com/dalexsoto/Monotouch-AdMob-Bindings

我正在将 AdMob .a 添加到我的 MonoTouch 应用程序中。我不确定这些编译错误是否意味着,尽管我猜 MonoTouch dll 中的绑定不正确?:

编译标志:

-v -v -v -gcc_flags "-framework AudioToolbox -L${ProjectDir} -lGoogleAdMobAds -force_load ${ProjectDir}/libGoogleAdMobAds.a"

产生的错误:

Undefined symbols:
  "__Unwind_Resume", referenced from:
      -[GADIdentifierUtilities locale] in libGoogleAdMobAds.a(GADIdentifierUtilities.o)
      -[GADIdentifierUtilities iTunesMetadata] in libGoogleAdMobAds.a(GADIdentifierUtilities.o)
      -[GADOpener openNotification:] in libGoogleAdMobAds.a(GADOpener.o)
      -[GADNotification initWithNotificationURL:] in libGoogleAdMobAds.a(GADNotification.o)
      -[GADWebView initWithFrame:] in libGoogleAdMobAds.a(GADWebView.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status

【问题讨论】:

    标签: c++ gcc xamarin.ios static-libraries admob


    【解决方案1】:

    如果经常添加 --cxx,但由于它不起作用,您可能想尝试更具体并添加 -lgcc_s - 这次在gcc_flags,所以使用类似:

    -v -v -v -cxx -gcc_flags="-lgcc_s ..."

    在您的“额外的 mtouch 参数”中。

    【讨论】:

      【解决方案2】:

      您必须指示 mtouch 使用 g++ 编译器。为此,您可以在 mtouch 参数中添加“-cxx”参数,例如:“-v -v -v -cxx - gcc_flags...”。

      【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-12-06
      • 1970-01-01
      • 1970-01-01
      • 2017-10-13
      • 1970-01-01
      • 1970-01-01
      • 2017-03-11
      相关资源
      最近更新 更多