chigco
V2EX  ›  问与答

Mac 下编译 Jnilib

  •  
  •   chigco · Aug 31, 2017 · 2514 views
    This topic created in 3199 days ago, the information mentioned may be changed or developed.
    在 win 下使用 VS 生成 dll 成功。拿到 MAC 下
    gcc -I ... -c jni.cpp 成功生成 jni.o
    然后
    gcc -dynamiclib -o libjni.jnilib jni.o
    报错了。。。
    Undefined symbols for architecture x86_64 referenced from:
    Supplement 1  ·  Aug 31, 2017
    好了。。。编译通过了。。。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5632 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 06:08 · PVG 14:08 · LAX 23:08 · JFK 02:08
    ♥ Do have faith in what you're doing.